User Tools

Site Tools


disable_action

Disable Action


Disables any input bindings assigned to an action ID (e.g. disabling the “jump” action will prevent that action from being triggered by any input bindings assigned to it). The action can be enabled again using the Enable Action function.

Signature:

disable_action(action_id, script_name)
ArgumentDescriptionTypeRequired
action_idSee Input Actions for a list of available action IDs.StringYes
script_nameName of the script assigned to the input binding (only applicable/required when the action ID is “Run Script”).StringNo

Example:

disable_action("jump");

Results: Any input bindings assigned to the “jump” action are disabled (preventing the player from jumping).

Use the Disable Action function to…


Editor Node:

disable_action.txt · Last modified: 2025/02/21 15:39 by justin