byond - Modules - TypesVar Details - Proc Details

conveyor_switch

the conveyor control switch

Vars

idID. Must match conveyor ID's to control them
invert_iconIf the level points the opposite direction when it's turned on.
last_posPrevious switch position
onewayIf this only works one way
positionswitch position

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

id

ID. Must match conveyor ID's to control them

invert_icon

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

last_pos

Previous switch position

oneway

If this only works one way

position

switch position

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.