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

conveyor_switch

Vars

conveyor_speedThe set time between movements of the conveyor belts
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.
last_posLast direction setting.
onewayIf the switch only operates the conveyor belts in a single direction.
positionThe current state of the switch.

Procs

interactCalled 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

conveyor_speed

The set time between movements of the conveyor belts

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.

last_pos

Last direction setting.

oneway

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

position

The current state of the switch.

Proc Details

interact

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.