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

assembly

Vars

assembly_flagsFlags related to this assembly. See [assemblies.dm]
is_position_sensitiveSet to true if the device has different icons for each position. This will prevent things such as visible lasers from facing the incorrect direction when transformed by assembly_holder's update_appearance()

Procs

activateWhat the device does when turned on
holder_movementholder_movement: Called when the assembly's holder detects movement
on_attachon_attach: Called when attached to a holder, wiring datum, or other special assembly
on_detachon_detach: Called when removed from an assembly holder or wiring datum
pulsePulse: This device is emitting a pulse to act on another device
pulsedPulsed: This device was pulsed by another device

Var Details

assembly_flags

Flags related to this assembly. See [assemblies.dm]

is_position_sensitive

Set to true if the device has different icons for each position. This will prevent things such as visible lasers from facing the incorrect direction when transformed by assembly_holder's update_appearance()

Proc Details

activate

What the device does when turned on

holder_movement

holder_movement: Called when the assembly's holder detects movement

on_attach

on_attach: Called when attached to a holder, wiring datum, or other special assembly

Will also be called if the assembly holder is attached to a plasma (internals) tank or welding fuel (dispenser) tank.

on_detach

on_detach: Called when removed from an assembly holder or wiring datum

pulse

Pulse: This device is emitting a pulse to act on another device

pulsed

Pulsed: This device was pulsed by another device