User Tools

Site Tools


execute_script

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
execute_script [2020/03/26 09:37] justinexecute_script [2021/04/21 18:29] (current) justin
Line 15: Line 15:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-execute_script("move_cat", false)+execute_script("move_cat", false);
 </code> </code>
 //Results:// The script named "move_cat" is triggered and runs in parallel with the currently running script. //Results:// The script named "move_cat" is triggered and runs in parallel with the currently running script.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Execute Script** function to trigger scripted movements for an NPC or the camera without holding up the main script of a cutscene.+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.
 </WRAP> </WRAP>
  
execute_script.1585240620.txt.gz · Last modified: 2020/03/26 09:37 by justin