Goonstation 13 - Modules - TypesVar Details - Proc Details

Ship Component

ship components have their work proc called in the vehicle's process

Vars

activeIf the part is working or not
component_classDetermines if a part can be installed.
disruptedThe part is disrupted by an attack and is forced to be off
power_usedHow much of the engine's capacity the part takes up
readySome parts need setup before full functionality
shipThe owner of the part
systemWhat system it is, to avoid a bunch of istype checks

Procs

activateWhat the component does when activated Returns 1 if successful
deactivateWhat the component does when deactived
mob_activateHandles mob entering ship
mob_deactivateHandles mob exiting from ship
run_componentComponent does this constantly

Var Details

active

If the part is working or not

component_class

Determines if a part can be installed.

disrupted

The part is disrupted by an attack and is forced to be off

power_used

How much of the engine's capacity the part takes up

ready

Some parts need setup before full functionality

ship

The owner of the part

system

What system it is, to avoid a bunch of istype checks

Proc Details

activate

What the component does when activated Returns 1 if successful

deactivate

What the component does when deactived

mob_activate

Handles mob entering ship

mob_deactivate

Handles mob exiting from ship

run_component

Component does this constantly