This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
disable_action [2024/03/11 11:39] – justin | disable_action [2025/02/21 15:39] (current) – justin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Disable Action====== | ======Disable Action====== | ||
---- | ---- | ||
- | (WIP) | + | 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: | ====Signature: | ||
<code python> | <code python> | ||
- | disable_action(action_id) | + | disable_action(action_id, script_name) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |action_id|See [[Input Actions]] for a list of possible | + | |action_id|See [[Input Actions]] for a list of available |
+ | |script_name|Name of the [[script]] assigned to the input binding (only applicable/ | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
+ | disable_action(" | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |