allVariables: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|version1= 1.38 | |version1= 1.38 | ||
|gr1= Variables | |gr1= Namespaces | ||
|gr2= Variables | |||
|mp= Using [[profileNamespace]] and [[uiNamespace]] with this command has been disabled in multiplayer. | |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= < | |x1= <sqf>_allVarsUINamespace = allVariables uiNamespace;</sqf> | ||
|seealso= [[allControls]] | |x2= <sqf>_allVarsTrigger = allVariables trigger1;</sqf> | ||
|seealso= [[allControls]] [[allDisplays]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]] | |||
}} | }} | ||
{{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> | |||
< | |||
in code | in code | ||
< | <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.