rcd_act ![code/game/objects/items/weapons/RCD.dm 10](git.png)
A generic action for an RCD.
Vars | |
cost | How much compressed matter this action costs. |
---|---|
delay | How long this action takes. |
end_effect_type | The effect (if any) to create when the action completes. |
mode | The mode the RCD must be in. |
start_effect_type | The effect (if any) to create when the action starts. |
start_message | The message (if any) to send the user when the action starts. |
Procs | |
act | Perform the act. You should usually override this. |
can_act | Test to see if the act is possible. You should usually override this. |
try_act | Attempt the action. This should not need to be overridden. |
Var Details
cost ![code/game/objects/items/weapons/RCD.dm 12](git.png)
How much compressed matter this action costs.
delay ![code/game/objects/items/weapons/RCD.dm 14](git.png)
How long this action takes.
end_effect_type ![code/game/objects/items/weapons/RCD.dm 20](git.png)
The effect (if any) to create when the action completes.
mode ![code/game/objects/items/weapons/RCD.dm 24](git.png)
The mode the RCD must be in.
start_effect_type ![code/game/objects/items/weapons/RCD.dm 18](git.png)
The effect (if any) to create when the action starts.
start_message ![code/game/objects/items/weapons/RCD.dm 16](git.png)
The message (if any) to send the user when the action starts.
Proc Details
act
Perform the act. You should usually override this.
can_act
Test to see if the act is possible. You should usually override this.
try_act
Attempt the action. This should not need to be overridden.