missionNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "‎" to "")
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|version1= 1.00


|1.00
|game2= arma2oa
|version2= 1.50


|gr1= Variables
|game3= tkoh
|version3= 1.00


| Returns the global namespace attached to mission.
|game4= arma3
|version4= 0.50


| '''missionNamespace'''
|gr1= Namespaces
|gr2= Variables


|p1=
|descr= Returns the global namespace attached to mission.


|p2=
|s1= [[missionNamespace]]


|p3=
|r1= [[Namespace]]


| [[Namespace]]
|x1= <sqf>
missionNamespace setVariable ["StringVariable", "myString"]; // same as: StringVariable = "myString";
_myStringValue = missionNamespace getVariable "StringVariable";
hint _myStringValue; // hints "myString"
</sqf>


|x1= <code>[[missionNamespace]] [[setVariable]] ["YourString",3];//Same as: YourString = 3;
|seealso= [[currentNamespace]] [[uiNamespace]] [[parsingNamespace]] [[profileNamespace]] [[localNamespace]] [[serverNamespace]] [[allVariables]] [[with]] [[ArmA:_Editing#Forward_Compatibility|Forward Compatibility]]
_yourString = [[missionNamespace]] [[getVariable]] "YourString";</code>
 
| [[currentNamespace]], [[uiNamespace]], [[parsingNamespace]], [[profileNamespace]], [[localNamespace]], [[allVariables]], [[with]], [[ArmA:_Editing#Forward_Compatibility|Forward Compatibility]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:54, 26 April 2023

Hover & click on the images for description

Description

Description:
Returns the global namespace attached to mission.
Groups:
NamespacesVariables

Syntax

Syntax:
missionNamespace
Return Value:
Namespace

Examples

Example 1:
missionNamespace setVariable ["StringVariable", "myString"]; // same as: StringVariable = "myString"; _myStringValue = missionNamespace getVariable "StringVariable"; hint _myStringValue; // hints "myString"

Additional Information

See also:
currentNamespace uiNamespace parsingNamespace profileNamespace localNamespace serverNamespace allVariables with Forward Compatibility

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