Difference between revisions of "execFSM"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m
Line 12: Line 12:
 
* Conditional link (condition is [[true]]): <tt>precondition</tt>-><tt>condition</tt>-><tt>action</tt>
 
* Conditional link (condition is [[true]]): <tt>precondition</tt>-><tt>condition</tt>-><tt>action</tt>
 
* Conditional link (condition is [[false]]): <tt>precondition</tt>-><tt>condition</tt>
 
* Conditional link (condition is [[false]]): <tt>precondition</tt>-><tt>condition</tt>
Scripted FSMs are added into the scheduler just like [[exec]] scripts, [[execVM]] scripts and [[spawn]] scripts. While the code placed into any of the sections of FSM cannot be suspended ([[canSuspend]] is false) the FSM itself is suspended every simulation between state's <tt>init</tt> and state's <tt>precondition</tt> (exception is the '''init state'''). Normally the difference between state's <tt>init</tt> and <tt>precondition</tt> is 1 frame but if the scheduler is busy it can take longer. This is the only place where scripted FSM is suspended/resumed.<br><br>
+
Scripted FSMs are added into the scheduler just like [[exec]] scripts, [[execVM]] scripts and [[spawn]] scripts. While the code placed into any of the sections of FSM cannot be suspended ([[canSuspend]] is false) the FSM itself is suspended every simulation between the state's <tt>init</tt> and the state's <tt>precondition</tt> (exception is the '''init state'''). Normally the difference between the state's <tt>init</tt> and <tt>precondition</tt> is 1 frame but if the scheduler is busy it can take longer. This is the only place where scripted FSM is suspended/resumed.<br><br>
 
To see what FSMs are currently in the scheduler, use [[diag_activeMissionFSMs]] command|= Description
 
To see what FSMs are currently in the scheduler, use [[diag_activeMissionFSMs]] command|= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________

Revision as of 22:28, 10 February 2019

Template:Command

Notes

Bottom Section