getFSMVariable
From Bohemia Interactive Community
Click on the images for descriptions
Introduced in
- Game:
- Arma 2
- Version:
- 1.00
Description
- Description:
- Return the value of variable in the variable space of given FSM. The FSM handle is the number returned by the execFSM command.
Syntax
- Syntax:
- FSMhandle getFSMVariable name
- Parameters:
- FSMhandle: Number -
- name: String - name of the variable
- Return Value:
- Anything
Alternative Syntax
- Syntax:
- FSMhandle getFSMVariable [name, defaultValue] (Since Arma 3 v1.67)
- Parameters:
- [name, defaultValue]: Array -
- FSMhandle: Number -
- name: String - name of the variable
- defaultValue: Anything - value to return if variable is nil
- Return Value:
- Anything
Examples
- Example 1:
_handle getFSMVariable "_foo";
- Example 2:
_handle getFSMVariable ["_foo", 123];
Additional Information
- Multiplayer:
- -
- See also:
- FSMcommandFSMcompletedFSMdoFSM execFSMsetFSMVariable
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
Add New Note | How To