User Tools

Site Tools


enable_action

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
enable_action [2024/03/11 11:28] – created justinenable_action [2025/02/21 15:38] (current) justin
Line 1: Line 1:
 ======Enable Action====== ======Enable Action======
 ---- ----
-(WIP)+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, assuming that jumping is enabled in the gameplay settings).
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-enable_action(action_id)+enable_action(action_id, script_name)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|action_id| |[[String]]|Yes|+|action_id|See [[Input Actions]] for a list of available action IDs.|[[String]]|Yes
 +|script_name|Name of the [[script]] assigned to the input binding (only applicable/required when the action ID is "Run Script").|[[String]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
 +enable_action("jump");
 </code> </code>
-//Results://+//Results:// Any input bindings assigned to the “jump” action are enabled (allowing the player to jump, if jumping is enabled in the gameplay settings).
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
enable_action.1710181722.txt.gz · Last modified: 2024/03/11 11:28 by justin