allVariables: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|mp= Using [[profileNamespace]] and [[uiNamespace]] with this command has been disabled in multiplayer. [https://forums.bistudio.com/topic/140837-development-branch-changelog/page-28#entry2869646 Changelog]|MP= | |mp= Using [[profileNamespace]] and [[uiNamespace]] with this command has been disabled in multiplayer. [https://forums.bistudio.com/topic/140837-development-branch-changelog/page-28#entry2869646 Changelog]|MP= | ||
| Returns a list of all variables from desired namespace. Namespaces supported:<br> | | Returns a list of all variables from desired namespace. Namespaces supported:<br> | ||
Line 21: | Line 19: | ||
*[[Location]] | *[[Location]] | ||
|DESCRIPTION= | |DESCRIPTION= | ||
Line 29: | Line 26: | ||
| [[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= | ||
| x1= <code>_allVarsUINamespace = [[allVariables]] [[uiNamespace]];</code>|EXAMPLE1= | | x1= <code>_allVarsUINamespace = [[allVariables]] [[uiNamespace]];</code>|EXAMPLE1= | ||
| x2= <code>_allVarsTrigger = [[allVariables]] trigger1;</code>|EXAMPLE2= | | x2= <code>_allVarsTrigger = [[allVariables]] trigger1;</code>|EXAMPLE2= | ||
| [[allControls]], [[allDisplays]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]] |SEEALSO= | | [[allControls]], [[allDisplays]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:08, 17 January 2021
Description
- Description:
- Returns a list of all variables from desired namespace. Namespaces supported:
- Multiplayer:
- Using profileNamespace and uiNamespace with this command has been disabled in multiplayer. Changelog
- 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 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.