/tg/ Station 13 - Modules - TypesVar Details

emitter

Vars

activeIs the machine active?
allow_switch_interactUsed to stop interactions with the object (mainly in the wabbajack statue)
chargeAmount of power inside
fire_delaySeconds before the next shot
gunStores the type of gun we are using inside the emitter
gun_propertiesList of all the properties of the inserted gun
icon_state_onThe icon state used by the emitter when it's on.
icon_state_underpoweredThe icon state used by the emitter when it's on and low on power.
last_projectile_paramsstores the direction and orientation of the last projectile
last_shotWhen was the last shot
lockedIs the emitter id locked?
manualmanual shooting? (basically you hop onto the emitter and choose the shooting direction, is very janky since you can only shoot at the 8 directions and i don't think is ever used since you can't build those)
maximum_fire_delayMax delay before firing
minimum_fire_delayMin delay before firing
poweredDoes the machine have power?
projectile_soundWhat's the projectile sound?
projectile_typeWhat projectile type are we shooting?
shot_numberNumber of shots made (gets reset every few shots)
sparksSparks emitted with every shot
weldedif it's welded down to the ground or not. the emitter will not fire while unwelded. if set to true, the emitter will start anchored as well.

Var Details

active

Is the machine active?

allow_switch_interact

Used to stop interactions with the object (mainly in the wabbajack statue)

charge

Amount of power inside

fire_delay

Seconds before the next shot

gun

Stores the type of gun we are using inside the emitter

gun_properties

List of all the properties of the inserted gun

icon_state_on

The icon state used by the emitter when it's on.

icon_state_underpowered

The icon state used by the emitter when it's on and low on power.

last_projectile_params

stores the direction and orientation of the last projectile

last_shot

When was the last shot

locked

Is the emitter id locked?

manual

manual shooting? (basically you hop onto the emitter and choose the shooting direction, is very janky since you can only shoot at the 8 directions and i don't think is ever used since you can't build those)

maximum_fire_delay

Max delay before firing

minimum_fire_delay

Min delay before firing

powered

Does the machine have power?

projectile_sound

What's the projectile sound?

projectile_type

What projectile type are we shooting?

shot_number

Number of shots made (gets reset every few shots)

sparks

Sparks emitted with every shot

welded

if it's welded down to the ground or not. the emitter will not fire while unwelded. if set to true, the emitter will start anchored as well.