doFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 3: Line 3:




 
<h2 style="color:#000066">'''''unit(s)'' enableAI ''[fsm name, position, target]'''''</h2>
<h2 style="color:#000066">''unit(s)'' ''''' enableAI ''''' ''[fsm name, position, target]''</h2>




Line 24: Line 23:


Orders a unit to process command defined by FSM file (silently).
Orders a unit to process command defined by FSM file (silently).


'''Example''':
'''Example''':
      
      
soldierOne '''doFSM'''' ["move.fsm", position player, player]
soldierOne '''doFSM'''' ["move.fsm", position player, player]

Revision as of 13:00, 4 July 2006


unit(s) enableAI [fsm name, position, target]


Operand types:

unit(s): Object or Array

[fsm name, position, target]: Array

Type of returned value:

Nothing

Compatibility:

Version 2.53 required.

Description:

Orders a unit to process command defined by FSM file (silently).


Example:

soldierOne doFSM' ["move.fsm", position player, player]