byond - Modules - TypesVar Details - Proc Details

sensor_tower

Vars

activate_timeTime it takes to start the activation
activatedTrue if the sensor tower has finished activation, used for minimap icon and preventing deactivation
already_activatedPrevents there being more than one sensor tower being activated
current_timerThe timer for when the sensor tower activates
deactivate_timeTime it takes to stop the activation
generate_timeTime it takes for the sensor tower to fully activate
idCount amount of sensor towers existing
remaining_game_timeHow long is left in the game end timer. Recorded as a var to pause the timer while tower is activating
toweridThe id for the tower when it initializes, used for minimap icon

Procs

attacker_interactionHandles attacker interactions with the tower
attacker_state_checkChecks whether an attack can currently activate this tower
begin_activationStarts timer and sends an alert
deactivateStops timer if activating and sends an alert
defender_interactionHandles defender interactions with the tower
finish_activationWhen timer ends add a point to the point pool in sensor capture, increase game timer, and send an alert
toggle_game_timerPauses or restarts the gamemode timer
update_control_minimap_iconUpdate minimap icon of tower if its deactivated, activated , and fully activated

Var Details

activate_time

Time it takes to start the activation

activated

True if the sensor tower has finished activation, used for minimap icon and preventing deactivation

already_activated

Prevents there being more than one sensor tower being activated

current_timer

The timer for when the sensor tower activates

deactivate_time

Time it takes to stop the activation

generate_time

Time it takes for the sensor tower to fully activate

id

Count amount of sensor towers existing

remaining_game_time

How long is left in the game end timer. Recorded as a var to pause the timer while tower is activating

towerid

The id for the tower when it initializes, used for minimap icon

Proc Details

attacker_interaction

Handles attacker interactions with the tower

attacker_state_check

Checks whether an attack can currently activate this tower

begin_activation

Starts timer and sends an alert

deactivate

Stops timer if activating and sends an alert

defender_interaction

Handles defender interactions with the tower

finish_activation

When timer ends add a point to the point pool in sensor capture, increase game timer, and send an alert

toggle_game_timer

Pauses or restarts the gamemode timer

update_control_minimap_icon

Update minimap icon of tower if its deactivated, activated , and fully activated