Ship Component 
ship components have their work proc called in the vehicle's process
Vars | |
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 |
large_pod_compatible | Can this part be used by 2x2 pods |
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 |
Procs | |
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 |
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
large_pod_compatible 
Can this part be used by 2x2 pods
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