machinery
Vars | |
processing_flags | Viable flags to go here are START_PROCESSING_ON_INIT, or START_PROCESSING_MANUALLY. See code__DEFINES\machines.dm for more information on these flags. |
---|---|
subsystem_type | What subsystem this machine will use, which is generally SSmachines or SSfastprocess. By default all machinery use SSmachines. This fires a machine's process() roughly every 2 seconds. |
Procs | |
begin_processing | Helper proc for telling a machine to start processing with the subsystem type that is located in its subsystem_type var. |
end_processing | Helper proc for telling a machine to stop processing with the subsystem type that is located in its subsystem_type var. |
power_change | Called whenever the power settings of the containing area change |
try_put_in_hand | Puts passed object in to user's hand |
Var Details
processing_flags
Viable flags to go here are START_PROCESSING_ON_INIT, or START_PROCESSING_MANUALLY. See code__DEFINES\machines.dm for more information on these flags.
subsystem_type
What subsystem this machine will use, which is generally SSmachines or SSfastprocess. By default all machinery use SSmachines. This fires a machine's process() roughly every 2 seconds.
Proc Details
begin_processing
Helper proc for telling a machine to start processing with the subsystem type that is located in its subsystem_type
var.
end_processing
Helper proc for telling a machine to stop processing with the subsystem type that is located in its subsystem_type
var.
power_change
Called whenever the power settings of the containing area change
by default, check equipment channel & set flag, can override if needed
Returns TRUE if the NOPOWER flag was toggled
try_put_in_hand
Puts passed object in to user's hand
Puts the passed object in to the users hand if they are adjacent. If the user is not adjacent then place the object on top of the machine.
Vars:
- object (obj) The object to be moved in to the users hand.
- user (mob/living) The user to recive the object