getFSMVariable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
Line 19: Line 19:
|s2= FSMhandle '''getFSMVariable''' [name, defaultValue] {{Since|arma3|1.67|y}}
|s2= FSMhandle '''getFSMVariable''' [name, defaultValue] {{Since|arma3|1.67|y}}


|p21= [name, defaultValue]: [[Array]] - |PARAMETER21=
|p21= [name, defaultValue]: [[Array]] -


|p22= FSMhandle: [[Number]] |PARAMETER22=
|p22= FSMhandle: [[Number]]


|p23= name: [[String]] - name of the variable |PARAMETER23=
|p23= name: [[String]] - name of the variable


|p24= defaultValue: [[Anything]] - value to return if variable is [[nil]]|PARAMETER24=
|p24= defaultValue: [[Anything]] - value to return if variable is [[nil]]


|r2= [[Anything]]
|r2= [[Anything]]

Revision as of 18:14, 29 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Variables

Syntax

Syntax:
Syntax needed
Parameters:
FSMhandle: Number
name: String - name of the variable
Return Value:
Return value needed

Alternative Syntax

Syntax:
FSMhandle getFSMVariable [name, defaultValue] Template:Since
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

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note