allVariables: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dd class="note">([^}]*)<code>([^<]*)<\/code>" to "<dd class="note">$1<sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "<dd class="note">([^}]*)<code>([^<]*)<\/code>" to "<dd class="note">$1<sqf>$2</sqf>") |
||
Line 39: | Line 39: | ||
<sqf>_EXEC(somevar = allVariables profileNamespace)</sqf> | <sqf>_EXEC(somevar = allVariables profileNamespace)</sqf> | ||
in code | in code | ||
< | <sqf>_allprofilevars = parsingNamespace getVariable "somevar"</sqf> | ||
but list will be valid only at the moment of parsing config. | but list will be valid only at the moment of parsing config. | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 10:58, 13 May 2022
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:
- NamespacesVariables
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:
- Example 2:
Additional Information
- See also:
- allControls allDisplays allCurators allGroups allDead allDeadMen
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
in codebut list will be valid only at the moment of parsing config.