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 LuaCommandProcessor. |
| 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:
name is already registered or already exists as a game command.Removes a registered command
False if the command didn't exist. Commands registered by scripts through LuaCommandProcessor.
Builtin commands of the core game.
This objects name.