allVariables: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "") |
m (updated with display as valid namespace) |
||
Line 10: | Line 10: | ||
| Returns a list of all variables from desired namespace. Namespaces supported:<br> | | Returns a list of all variables from desired namespace. Namespaces supported:<br> | ||
*[[Control]] | *[[Control]] - ''Since {{arma3}} v2.01'' | ||
*[[Display]] - ''Since {{arma3}} v2.01'' | |||
*[[Team Member]] | *[[Team Member]] | ||
*[[Namespace]] | *[[Namespace]] | ||
Line 23: | Line 24: | ||
| '''allVariables''' namespace |SYNTAX= | | '''allVariables''' namespace |SYNTAX= | ||
| p1= namespace: [[Control]], [[Team Member]], [[Namespace]], [[Object]], [[Group]], [[Task]], [[Location]] |= | | p1= namespace: [[Control]] (''Since {{arma3}} v2.01''), [[Display]] (''Since {{arma3}} v2.01'') [[Team Member]], [[Namespace]], [[Object]], [[Group]], [[Task]], [[Location]] |= | ||
| [[Array]] of [[String]]s - array of variable names. All names are in lower case (see [[toLower]])|RETURNVALUE= | | [[Array]] of [[String]]s - array of variable names. All names are in lower case (see [[toLower]])|RETURNVALUE= |
Revision as of 14:13, 23 November 2020
Description
- Description:
- Returns a list of all variables from desired namespace. Namespaces supported:
- Groups:
- Variables
Syntax
- Syntax:
- allVariables namespace
- Parameters:
- namespace: Control (Since Arma 3 v2.01), Display (Since Arma 3 v2.01) Team Member, Namespace, Object, Group, Task, Location
- Return Value:
- Array of Strings - array of variable names. All names are in lower case (see toLower)
Examples
- Example 1:
_allVarsUINamespace = allVariables uiNamespace;
- Example 2:
_allVarsTrigger = allVariables trigger1;
Additional Information
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
Notes
Bottom Section
- Posted on June 11, 2016 - 00:27 (UTC)
- Benargee
- Using profileNamespace and uiNamespace with this command has been disabled in multiplayer. [1]
- Posted on October 1, 2016 - 23:54 (UTC)
- longbow
- One still can use allVariables in Multiplayer against profileNamespace and uiNamespace using config parser. In Description.ext
_EXEC(somevar = allVariables profileNamespace)
in code_allprofilevars = parsingNamespace getVariable "somevar"
but list will be valid only at the moment of parsing config.