Arma 3 Scripting

Command in Multiplayer

isServer

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns true if the machine executing the command is the server in a multiplayer game or is running single player. It will return true for both dedicated and player-hosted server. See also Multiplayer Scripting/machines.

Syntax

isServer

Returns: Boolean

Examples

Example 1

if (!isServer) exitWith {};

See also

isDedicated · isMultiplayer · hasInterface · local