Difference between revisions of "execFSM"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
(format)
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| Execute the scripted FSM. The FSM file is first searched in the mission folder, then in the campaign scripts folder and finally in the global scripts folder.  
+
| Executes scripted FSM and returns the FSM handle or 0 when failed. The FSM file is first searched in the mission folder, then in the campaign scripts folder and finally in the global scripts folder. Argument (if any) are available in <tt>_this</tt> variable inside FSM. In Arma 3 FSM handle is also available in <tt>_thisFSM</tt> variable. |= Description
<br>Argument(s) (if any) is/are passed as <tt>_this</tt> to the FSM.
 
<br>Returns the FSM handle or 0 when failed. |= Description
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| argument(s) '''execFSM''' filename |= Syntax
+
| arguments '''execFSM''' filename |= Syntax
  
|p1= argument(s): [[Any Value]](s) - Argument(s) accessible as <tt>_this</tt> in the FSM|= Parameter 1
+
|p1= arguments: [[Anything]] - Arguments accessible as <tt>_this</tt> in the FSM|= Parameter 1
  
 
|p2= filename: [[String]] - file with FSM code |= Parameter 2
 
|p2= filename: [[String]] - file with FSM code |= Parameter 2

Revision as of 10:53, 1 August 2016

Template:Command

Notes

Bottom Section