Custom game console commands. Similar to event subscriptions, added commands don't persist through save and load.
|add_command(name, help, function)||Add a command.|
|remove_command(string) → boolean||Removes a registered command|
|commands :: dictionary string → LocalisedString [R]|| Commands registered by scripts through |
|game_commands :: dictionary string → LocalisedString [R]||Builtin commands of the core game.|
|object_name :: string [R]||This objects name.|
Add a command.
The function registered to the command is passed a table when the command is invoked. The table contains:
nameis already registered or already exists as a game command.
Removes a registered command
Falseif the command didn't exist.
Commands registered by scripts through
This objects name.