Difference between revisions of "execFSM"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added SEEALSO)
(Updated parameters and example)
Line 11: Line 11:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| '''execFSM''' filename |= Syntax
+
| [[Script]] <nowiki>=</nowiki> argument '''execFSM''' filename |= Syntax
  
|p1= filename: |= PARAMETER1
+
|p1= argument: [[Any Value]](s) |= Parameter 1
  
|p2= |= PARAMETER2
+
|p2= filename: [[String]] |= Parameter 2
  
|p3= |= PARAMETER3
+
| [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the called FSM has finished.|= Return value
 
+
____________________________________________________________________________________________
| [[Number]] |= RETURNVALUE
 
 
 
 
 
|x1= <pre>execFSM "test.fsm";</pre>|= EXAMPLE1
 
  
 +
|x1= <pre>_handle = [[player] execFSM "test.fsm";</pre>|= EXAMPLE1
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 19:52, 20 December 2010

Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
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. Returns the FSM handler or 0 when failed.

Syntax

Syntax:
Script = argument execFSM filename
Parameters:
argument: Any Value(s)
filename: String
Return Value:
Script - script handle, which can be used to determine (via scriptDone) when the called FSM has finished.

Examples

Example 1:
_handle = [[player] execFSM "test.fsm";

Additional Information

Multiplayer:
-
See also:
FSMFSM_Editor_ManualexecVMscriptDoneterminatecommandFSMcompletedFSMdoFSMgetFSMVariablesetFSMVariable

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section