User Tools

Site Tools


cw4:scripting:running_when_paused

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
cw4:scripting:running_when_paused [2021/02/13 15:40] virgilwcw4:scripting:running_when_paused [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-<=[[4rpl:tutorials|Tutorials]]+<=[[4rpl:start|Index]] \\ 
 +<=[[cw4:Tutorials]] 
  
 ===== Executing Scripts When Paused ===== ===== Executing Scripts When Paused =====
  
 ==== Global Scripts ==== ==== Global Scripts ====
-Global script can be added to any cpack. Open a cpack and select the SCRIPTS tab. From there click "+New" and create a new script.  In the top middle pane next to the "Units" tab is the "Global Control" tab. Select that and you can added the newly created script to either the Pro or Post sections. The "Pre" section is for scripts that will execute at the beginning of the game loop. The "Post" section is for scripts that will execute at the end of the game loop.+Global script can be added to any cpack. Open a cpack and select the SCRIPTS tab. From there click "+New" and create a new script.  In the top middle pane next to the "Units" tab is the "Global Control" tab. Select that and you can added the newly created script to either the Pre or Post sections. The "Pre" section is for scripts that will execute at the beginning of the game loop. The "Post" section is for scripts that will execute at the end of the game loop.
  
 After adding a script to either, or both sections, select the script in the pre/post section by clicking on it. That will show "Script Execution Settings" in the right pane. From there you can select "Run when paused". After adding a script to either, or both sections, select the script in the pre/post section by clicking on it. That will show "Script Execution Settings" in the right pane. From there you can select "Run when paused".
cw4/scripting/running_when_paused.1613230813.txt.gz · Last modified: 2025/02/14 14:56 (external edit)