serverNamespace

From Bohemia Interactive Community
Revision as of 05:51, 11 January 2024 by Lou Montana (talk | contribs) (Add Arma 3: Server Side Scripting and Arma 3: Server Config File links, Change example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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