allVariables: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {3,}\|" to " |")
m (Some wiki formatting)
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.38


| 1.38
|gr1= Namespaces
|gr2= Variables


|gr1= Variables
|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}}.}}


|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]
|descr= Returns a list of all variables from the desired namespace.


| Returns a list of all variables from desired namespace. Namespaces supported:<br>
|s1= [[allVariables]] namespace
*[[Control]] - ''Since {{arma3}} v2.01''
*[[Display]] - ''Since {{arma3}} v2.01''
*[[Team Member]]
*[[Namespace]]
*[[Object]]
*[[Group]]
*[[Task]]
*[[Location]]


| '''allVariables''' 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]]


| p1= namespace: [[Control]] (''Since {{arma3}} v2.01''), [[Display]] (''Since {{arma3}} v2.01'')  [[Team Member]], [[Namespace]], [[Object]], [[Group]], [[Task]], [[Location]]
|r1= [[Array]] of [[String]]s - array of variable names. All names are in lower case (see [[toLower]])


| [[Array]] of [[String]]s - array of variable names. All names are in lower case (see [[toLower]])
|x1= <sqf>_allVarsUINamespace = allVariables uiNamespace;</sqf>


| x1= <code>_allVarsUINamespace = [[allVariables]] [[uiNamespace]];</code>
|x2= <sqf>_allVarsTrigger = allVariables trigger1;</sqf>
| x2= <code>_allVarsTrigger = [[allVariables]] trigger1;</code>
 
| [[allControls]], [[allDisplays]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]]


|seealso= [[allControls]] [[allDisplays]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]]
}}
}}


 
{{Note
{{GameCategory|arma3|New Scripting Commands}}
|user= longbow
{{GameCategory|arma3|Scripting Commands}}
|timestamp= 20161001235400
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|text= One still can use [[allVariables]] in Multiplayer against [[profileNamespace]] and [[uiNamespace]] using config parser. In [[Description.ext]]
 
<sqf>_EXEC(someVar = allVariables profileNamespace)</sqf>
<dl class="command_description">
<dd class="notedate">Posted on October 1, 2016 - 23:54 (UTC)</dd>
<dt class="note">[[User:longbow|longbow]]</dt>
<dd class="note">One still can use [[allVariables]] in Multiplayer against [[profileNamespace]] and [[uiNamespace]] using config parser. In [[Description.ext]]
<code>_EXEC(somevar = allVariables profileNamespace)</code>
in code
in code
<code>_allprofilevars = parsingNamespace getVariable "somevar"</code>
<sqf>_allProfileVars = parsingNamespace getVariable "someVar"</sqf>
but list will be valid only at the moment of parsing config.
but this list will be valid only at the moment of config parsing.
</dd>
}}
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 16:11, 15 March 2023

Hover & click on the images for description

Description

Description:
Returns a list of all variables from the desired namespace.
Multiplayer:
Using profileNamespace and uiNamespace with this command has been disabled in multiplayer in Arma 3 logo black.png1.40 - see Changelog.
Groups:
NamespacesVariables

Syntax

Syntax:
allVariables namespace
Parameters:
namespace: Namespace, Object, Group, Task, Location, Team Member, Arma 3 logo black.png2.02 Control, Arma 3 logo black.png2.02 Display
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:
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
longbow - c
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
_EXEC(someVar = allVariables profileNamespace)
in code
_allProfileVars = parsingNamespace getVariable "someVar"
but this list will be valid only at the moment of config parsing.