missionNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added command group Namespaces)
m (Some wiki formatting)
Line 18: Line 18:
|descr= Returns the global namespace attached to mission.
|descr= Returns the global namespace attached to mission.


|s1= '''missionNamespace'''
|s1= [[missionNamespace]]


|r1= [[Namespace]]
|r1= [[Namespace]]


|x1= <code>[[missionNamespace]] [[setVariable]] ["YourString",3];//Same as: YourString = 3;
|x1= <sqf>
_yourString = [[missionNamespace]] [[getVariable]] "YourString";</code>
missionNamespace setVariable ["StringVariable", "myString"]; // same as: StringVarilable = "myString";
_myStringValue = missionNamespace getVariable "StringVariable";
hint _myStringValue; // hints "myString"
</sqf>


|seealso= ‎[[currentNamespace]], [[uiNamespace]], [[parsingNamespace]], [[profileNamespace]], [[localNamespace]], [[serverNamespace]], [[allVariables]], [[with]], [[ArmA:_Editing#Forward_Compatibility|Forward Compatibility]]
|seealso= ‎[[currentNamespace]], [[uiNamespace]], [[parsingNamespace]], [[profileNamespace]], [[localNamespace]], [[serverNamespace]], [[allVariables]], [[with]], [[ArmA:_Editing#Forward_Compatibility|Forward Compatibility]]
}}
}}

Revision as of 21:08, 18 April 2022

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: StringVarilable = "myString"; _myStringValue = missionNamespace getVariable "StringVariable"; hint _myStringValue; // hints "myString"

Additional Information

See also:
currentNamespaceuiNamespaceparsingNamespaceprofileNamespacelocalNamespaceserverNamespaceallVariableswithForward 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