serverNamespace: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ") |
Lou Montana (talk | contribs) m (Add Arma 3: Server Side Scripting and Arma 3: Server Config File links, Change example) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|gr1= Namespaces | |||
|gr2= Variables | |||
|gr3= Multiplayer | |||
|serverExec= server | |serverExec= server | ||
|descr= Returns server's [[Namespace|namespace]]. This namespace is only available on the server. Server event handlers, which are available in server config, | |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= [[serverNamespace]] | |s1= [[serverNamespace]] | ||
Line 14: | 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= < | |x1= <sqf> | ||
if (isServer) then | |||
{ | |||
hint str allVariables serverNamespace; | |||
} | |||
else | |||
{ | |||
hint "you do not have permission!"; | |||
}; | |||
</sqf> | |||
|seealso= [[missionNamespace]] [[setVariable]] [[getVariable]] [[allVariables]] | |seealso= [[missionNamespace]] [[setVariable]] [[getVariable]] [[allVariables]] | ||
}} | }} |
Latest revision as of 05:51, 11 January 2024
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:
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