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

cosmic_beam

Vars

activeWether the beam is active or not
check_delayThe delay of when the beam gets checked
current_beamThe storage for the beam
current_targetStores the current beam target
last_checkChecks the time of the last check
max_rangeThe maximum range of the beam

Procs

beam_diedProc that is only called when the beam fails due to something, so not when manually ended. manual disconnection = lose_target, so it can silently end automatic disconnection = beam_died, so we can give a warning message first
los_checkChecks if the beam is going through an invalid turf
lose_targetProc that always is called when we want to end the beam and makes sure things are cleaned up, see beam_died()
on_beam_hitWhat to add when the beam connects to a target
on_beam_releaseWhat to remove when the beam disconnects from a target
on_beam_tickWhat to process when the beam is connected to a target
start_beamUsed for starting the beam when a target has been acquired

Var Details

active

Wether the beam is active or not

check_delay

The delay of when the beam gets checked

current_beam

The storage for the beam

current_target

Stores the current beam target

last_check

Checks the time of the last check

max_range

The maximum range of the beam

Proc Details

beam_died

Proc that is only called when the beam fails due to something, so not when manually ended. manual disconnection = lose_target, so it can silently end automatic disconnection = beam_died, so we can give a warning message first

los_check

Checks if the beam is going through an invalid turf

lose_target

Proc that always is called when we want to end the beam and makes sure things are cleaned up, see beam_died()

on_beam_hit

What to add when the beam connects to a target

on_beam_release

What to remove when the beam disconnects from a target

on_beam_tick

What to process when the beam is connected to a target

start_beam

Used for starting the beam when a target has been acquired