Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:

Executes the scripted FSM. The FSM file is first searched in the mission folder, then in the global scripts folder.

The status returned by unitReady depends on whether the checked unit is currently executing a command (unlike calls from doFSM, where it is false for the whole duration of the FSM script).

Syntax

Syntax:argument execFSM filename
Parameters:
  • argument: Anything - Available as _this in the called FSM.
  • filename: String - Name of FSM script to execute.
Return Value:Number - FSM handle (or 0 when failed).

Examples

Examples:
_hdl = player execFSM "test.fsm";
_hdl = [player,tank1] execFSM "test.fsm";
Demo mission: FSM_Demo.zip

Additional Information

See also: doFSM, completedFSM, FSM Manual (see the VBS Developer Reference)
Multiplayer:
Problems:

Notes