User Tools

Site Tools


execute_script

Execute Script


Executes the specified script. The script will run in parallel with the current one (unless specified otherwise).

Signature:

execute_script(script_name)
ArgumentDescriptionTypeRequired
script_nameName of the script (as defined in the Script Editor).StringYes
pauseWhether or not the current script should be paused until the triggered script has finished executing. Defaults to false.BooleanNo

Example:

execute_script("move_cat", false)

Results: The script named “move_cat” is triggered and runs in parallel with the currently running script.

Use the Execute Script function to trigger scripted movements for an NPC or the camera without holding up the main script of a cutscene, or to encapsulate reusable functionality within a separate script.


Editor Node:

execute_script.txt · Last modified: 2020/03/26 09:39 by justin