You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code action type executes a block of AI script code. This is the most flexible and powerful action type available in the NPC logic system. With the code action type, one can execute a block of AI script code, granting the ability to implement custom, complex behaviors for NPCs that go beyond the capabilities of the other action types.
The code to be executed is specified as a string parameter using the AI script language syntax and structure. For more information on the AI script language, see the AI Script page.
Parameter Syntax
<ai_script_code>
Parameters
<ai_script_code>: The AI script code to execute. This should be a block of code that performs the desired behavior.
See also
AI Script: Syntax and structure of the AI script language.