allVariables: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{ExternalLink|" to "{{Link|") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 7: | Line 7: | ||
|gr2= Variables | |gr2= Variables | ||
|mp= Using [[profileNamespace]] and [[uiNamespace]] with this command has been disabled in multiplayer. {{Link| | |mp= {{Feature|important|Using [[profileNamespace]] and [[uiNamespace]] with this command has been disabled in multiplayer in {{GVI|arma3|1.40}} - see {{Link|https://forums.bohemia.net/forums/topic/140837-development-branch-changelog/?do{{=}}findComment&comment{{=}}2869646|Changelog}}.}} | ||
|descr= Returns a list of all variables from desired namespace. | |descr= Returns a list of all variables from the desired namespace. | ||
|s1= [[allVariables]] namespace | |s1= [[allVariables]] namespace | ||
|p1= namespace: [[ | |p1= namespace: [[Namespace]], [[Object]], [[Group]], [[Task]], [[Location]], [[Team Member]], {{GVI|arma3|2.02|size= 0.75}} [[Control]], {{GVI|arma3|2.02|size= 0.75}} [[Display]] | ||
|r1= [[Array]] of [[String]]s - array of variable names. All names are in lower case (see [[toLower]]) | |r1= [[Array]] of [[String]]s - array of variable names. All names are in lower case (see [[toLower]]) | ||
|x1= <sqf>_allVarsUINamespace = allVariables uiNamespace;</sqf> | |x1= <sqf>_allVarsUINamespace = allVariables uiNamespace;</sqf> | ||
|x2= <sqf>_allVarsTrigger = allVariables trigger1;</sqf> | |x2= <sqf>_allVarsTrigger = allVariables trigger1;</sqf> | ||
Line 31: | Line 24: | ||
}} | }} | ||
{{Note | |||
|user= longbow | |||
|timestamp= 20161001235400 | |||
|text= One still can use [[allVariables]] in Multiplayer against [[profileNamespace]] and [[uiNamespace]] using config parser. In [[Description.ext]] | |||
<sqf>_EXEC(someVar = allVariables profileNamespace)</sqf> | |||
<sqf>_EXEC( | |||
in code | in code | ||
<sqf> | <sqf>_allProfileVars = parsingNamespace getVariable "someVar"</sqf> | ||
but list will be valid only at the moment of parsing | but this list will be valid only at the moment of config parsing. | ||
}} | |||
Latest revision as of 16:11, 15 March 2023
Description
- Description:
- Returns a list of all variables from the desired namespace.
- Multiplayer:
- Groups:
- NamespacesVariables
Syntax
- Syntax:
- allVariables namespace
- Parameters:
- namespace: Namespace, Object, Group, Task, Location, Team Member, 2.02 Control, 2.02 Display
- 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 Oct 01, 2016 - 23:54 (UTC)
-
One still can use allVariables in Multiplayer against profileNamespace and uiNamespace using config parser. In Description.ext
in codebut this list will be valid only at the moment of config parsing.