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

conveyor_switch

Vars

idThe ID of the switch, must match conveyor IDs to control them.
invert_iconIf the level points the opposite direction when it's turned on.
onewayIf the switch only operates the conveyor belts in a single direction.
positionThe current state of the switch.

Procs

attack_handCalled when a user clicks on this switch with an open hand.
update_linked_conveyorsUpdates all conveyor belts that are linked to this switch, and tells them to start processing.
update_linked_switchesFinds any switches with same id as this one, and set their position and icon to match us.
update_positionUpdates the switch's position and last_pos variable. Useful so that the switch can properly cycle between the forwards, backwards and neutral positions.

Var Details

id

The ID of the switch, must match conveyor IDs to control them.

invert_icon

If the level points the opposite direction when it's turned on.

oneway

If the switch only operates the conveyor belts in a single direction.

position

The current state of the switch.

Proc Details

attack_hand

Called when a user clicks on this switch with an open hand.

update_linked_conveyors

Updates all conveyor belts that are linked to this switch, and tells them to start processing.

update_linked_switches

Finds any switches with same id as this one, and set their position and icon to match us.

update_position

Updates the switch's position and last_pos variable. Useful so that the switch can properly cycle between the forwards, backwards and neutral positions.