serverNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.06 |arg= local or global |eff= local or global |serverExec= server or empty |descr= Returns server namespace....")
 
 
(9 intermediate revisions by 4 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.06
|version1= 2.06


|arg= local or global
|gr1= Namespaces
 
|eff= local or global
 
|serverExec= server or empty


|descr= Returns server [[Namespace|namespace]].
|gr2= Variables


|mp= MP behaviour
|gr3= Multiplayer


|pr= Known problems
|serverExec= server


|gr1= Variables
|descr= Returns server's [[Namespace|namespace]].
This namespace is only available on the server for the server's uptime duration (same as [[uiNamespace]]).<br>
All [[Arma 3: Server Side Scripting|server event handlers]], which are available in [[Arma 3: Server Config File|server config]], use this namespace.


|s1= [[{{PAGENAMEE}}]]
|s1= [[serverNamespace]]


|r1= [[Namespace]]
|r1= [[Namespace]] on the server, [[Nothing]] on clients or in single-player.


|x1= <code>[[private]] serverVars = [[allVariables]] [[serverNamespace]];</code>
|x1= <sqf>
if (isServer) then
{
hint str allVariables serverNamespace;
}
else
{
hint "you do not have permission!";
};
</sqf>


|seealso=  
|seealso= [[missionNamespace]] [[setVariable]] [[getVariable]] [[allVariables]]
}}
}}

Latest revision as of 06:51, 11 January 2024

Hover & click on the images for description

Description

Description:
Returns server's namespace. This namespace is only available on the server for the server's uptime duration (same as uiNamespace).
All server event handlers, which are available in server config, use this namespace.
Groups:
NamespacesVariablesMultiplayer

Syntax

Syntax:
serverNamespace
Return Value:
Namespace on the server, Nothing on clients or in single-player.

Examples

Example 1:
if (isServer) then { hint str allVariables serverNamespace; } else { hint "you do not have permission!"; };

Additional Information

See also:
missionNamespace setVariable getVariable allVariables

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