serverNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added command group Namespaces)
m (Some wiki formatting)
Line 5: Line 5:


|gr1= Namespaces
|gr1= Namespaces
|gr2= Variables
|gr2= Variables
|gr3= Multiplayer
|gr3= Multiplayer


|serverExec= server
|serverExec= server


|descr= Returns server's [[Namespace|namespace]]. This namespace is only available on the server for the server's uptime duration (same as [[uiNamespace]]). Server event handlers, which are available in server config, all use this namespace.
|descr= Returns server's [[Namespace|namespace]].
This namespace is only available on the server for the server's uptime duration (same as [[uiNamespace]]).
Server event handlers, which are available in server config, all use this namespace.


|s1= [[serverNamespace]]
|s1= [[serverNamespace]]
Line 16: Line 20:
|r1= [[Namespace]] on the server, [[Nothing]] on clients or in single-player.
|r1= [[Namespace]] on the server, [[Nothing]] on clients or in single-player.


|x1= <code>[[private]] _serverVars = [[allVariables]] [[serverNamespace]];</code>
|x1= <sqf>private _serverVars = allVariables serverNamespace;</sqf>


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

Revision as of 18:34, 5 May 2022

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). Server event handlers, which are available in server config, all use this namespace.
Groups:
NamespacesVariablesMultiplayer

Syntax

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

Examples

Example 1:
private _serverVars = allVariables serverNamespace;

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