User Tools

Site Tools


enable_action

This is an old revision of the document!


Enable Action


Enables any input bindings assigned to an action ID that were previously disabled via Disable Action (e.g. enabling the “jump” action will allow that action to be triggered by any input bindings assigned to it).

Signature:

enable_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:

enable_action("jump");

Results: Any input bindings assigned to the “jump” action are enabled (allowing the player to jump, if jumping is enabled in the gameplay settings).

Use the Enable Action function to…


Editor Node:

enable_action.1740180384.txt.gz · Last modified: 2025/02/21 15:26 by justin