Prototype of a custom input.
name :: string [R] | Name of this prototype. |
order :: string [R] | Order string of this prototype. |
localised_name :: LocalisedString [R] | |
localised_description :: LocalisedString [R] | |
key_sequence :: string [R] | The default key sequence for this custom input. |
alternative_key_sequence :: string [R] | The default alternative key sequence for this custom input. |
linked_game_control :: string [R] | The linked game control name or nil . |
consuming :: string [R] | The consuming type: "none" or "game-only" . |
action :: string [R] | The action that happens when this custom input is triggered. |
enabled :: boolean [R] | If this custom input is enabled. |
enabled_while_spectating :: boolean [R] | If this custom input is enabled while using the spectator controller. |
enabled_while_in_cutscene :: boolean [R] | If this custom input is enabled while using the cutscene controller. |
include_selected_prototype :: boolean [R] | If this custom input will include the selected prototype (if any) when triggered. |
item_to_spawn :: LuaItemPrototype [R] | The item that gets spawned when this custom input is fired or nil . |
valid :: boolean [R] | Is this object valid? |
object_name :: string [R] | The class name of this object. |
help() → string | All methods and properties that this object supports. |
Name of this prototype.
Order string of this prototype.
The default key sequence for this custom input.
The default alternative key sequence for this custom input. nil
when not defined.
The linked game control name or nil
.
The consuming type: "none"
or "game-only"
.
The action that happens when this custom input is triggered.
If this custom input is enabled. Disabled custom inputs exist but are not used by the game.
If this custom input is enabled while using the spectator controller.
If this custom input is enabled while using the cutscene controller.
If this custom input will include the selected prototype (if any) when triggered.
The item that gets spawned when this custom input is fired or nil
.