/tg/ Station 13 - Modules - TypesVar Details - Proc Details

holoray_trail

Renders a holopad-style holoray from the parent item to a linked mob. The ray follows the pen, the linked mob, and any non-linked mob carrying the pen. Right-click while held toggles the trail; examine shows the current state.

Vars

enabledWhether the ray is rendered when conditions allow it
holder_refWeakref to a non-linked-mob carrier whose movement the ray follows
holorayThe active ray overlay (only set while the mob is deployed and the trail is enabled)
linked_mob_refWeakref to the mob the ray points at
ray_colorTint applied to the ray sprite; null leaves the default blue.

Procs

on_linked_mob_qdelSelf-destructs when the linked mob is deleted.
refresh_rayEnsures the ray exists + points from the parent's turf to the linked mob's turf, or tears it down if it shouldn't exist.
update_holder_trackingTracks COMSIG_MOVABLE_MOVED on the parent's current carrier when it's not the linked mob, so the ray follows them.

Var Details

enabled

Whether the ray is rendered when conditions allow it

holder_ref

Weakref to a non-linked-mob carrier whose movement the ray follows

holoray

The active ray overlay (only set while the mob is deployed and the trail is enabled)

linked_mob_ref

Weakref to the mob the ray points at

ray_color

Tint applied to the ray sprite; null leaves the default blue.

Proc Details

on_linked_mob_qdel

Self-destructs when the linked mob is deleted.

refresh_ray

Ensures the ray exists + points from the parent's turf to the linked mob's turf, or tears it down if it shouldn't exist.

update_holder_tracking

Tracks COMSIG_MOVABLE_MOVED on the parent's current carrier when it's not the linked mob, so the ray follows them.