getFSMVariable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) 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]] - | |p21= [name, defaultValue]: [[Array]] - | ||
|p22= FSMhandle: [[Number]] | |p22= FSMhandle: [[Number]] | ||
|p23= name: [[String]] - name of the variable | |p23= name: [[String]] - name of the variable | ||
|p24= defaultValue: [[Anything]] - value to return if variable is [[nil]] | |p24= defaultValue: [[Anything]] - value to return if variable is [[nil]] | ||
|r2= [[Anything]] | |r2= [[Anything]] |
Revision as of 18:14, 29 January 2021
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