allVariables: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "</dd> </dl>" to "</dd> </dl>")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
Line 9: Line 9:
|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= 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]


| Returns a list of all variables from desired namespace. Namespaces supported:<br>
|descr= Returns a list of all variables from desired namespace. Namespaces supported:<br>
*[[Control]] - ''Since {{arma3}} v2.01''
*[[Control]] - ''Since {{arma3}} v2.01''
*[[Display]] - ''Since {{arma3}} v2.01''
*[[Display]] - ''Since {{arma3}} v2.01''

Revision as of 21:55, 13 June 2021

Hover & click on the images for description

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

See also:
allControlsallDisplaysallCuratorsallGroupsallDeadallDeadMen

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
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.