handleCommand
Called by the engine when certain events occur.
This is a callback function, meaning it does not exist and you should not try to call it. Instead, you define it and the engine will call it. Not to be confused with Command
.
This function is not officially documented.
Arguments
- string: Command
Return values
None.
Commands
Some of these are only called for certain scripts. (TODO: Which?)
Underlined text indicates that the text is not literal but is a placeholder for varying text.
activate
- Added in 0.4.5 (5748542).
exit
-
Unused.
Added sometime between 0.4.6 (5788537) and 1.0.0 (8558212).
explosion strength x y z
-
Called when an explosion happens. (TODO: All explosions, or only some?)
Added in 0.9.0 (7801522).
quickload
- Called instead of
init
after a quicksave is loaded.
quicksave
- Called after the
game.quicksave
command is run.
resolutionchanged
- Called after the
game.applydisplay
command is run.
shot strength x y z dx dy dz
-
Called when a gunshot hits a surface. (TODO: All gunshots?)
Added in 0.9.0 (7801522).
updatemods
- Added in 0.6.1 (6279809).