missionNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)\]\], \[\[" to "|seealso= $1]] [[")
m (Text replacement - "‎" to "")
 
(8 intermediate revisions by 2 users not shown)
Line 23: Line 23:


|x1= <sqf>
|x1= <sqf>
missionNamespace setVariable ["StringVariable", "myString"]; // same as: StringVarilable = "myString";
missionNamespace setVariable ["StringVariable", "myString"]; // same as: StringVariable = "myString";
_myStringValue = missionNamespace getVariable "StringVariable";
_myStringValue = missionNamespace getVariable "StringVariable";
hint _myStringValue; // hints "myString"
hint _myStringValue; // hints "myString"
</sqf>
</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]]
}}
}}

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