onOfficialServer

From Bohemia Interactive Community
Revision as of 19:29, 7 December 2023 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Get if the current machine is an official server or is connected to one.
Groups:
Argo

Syntax

Syntax:
onOfficialServer
Return Value:
Boolean - true if the machine is an official server or is connected to one, false otherwise (e.g disconnected or single player)

Examples

Example 1:
if (onOfficialServer) then { systemChat "I am safe here! Wait, why is this bush crawling towards me"; };

Additional Information

See also:
kickPlayer

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