Skip to content

isServer

ffredyk edited this page Jul 23, 2026 · 1 revision

isServer

Category

Multiplayer

Arity

NularisServer.

isServer

Description

Returns true if the current process is the server (or host in a listen-server setup). In the SQ# host, this is always true — the host is the server. Useful for writing server-authoritative logic that ports to Arma.

Registered by DeclareMultiplayerCommands(). NOT called automatically — host must invoke explicitly.

How It Works

Returns the host's IsServer flag. In the reference SQ# host, this is always true. Dedicated server vs listen server is distinguished by isDedicated.

Usage

if (isServer) then {
    // Server-authoritative logic
    spawnAI();
    manageLoot();
};

Thread Safety

ReadOnly — pure query.

See Also

SQ# Wiki

Home

Engine Docs

Migration

Commands

Value Constructors

Arithmetic

Comparison

Logic

Array

String

Math

Random

Type & Introspection

HashMap

Code Execution

Concurrency

Scheduler

Thread Safety

Error

Output

Time

Multiplayer

Compiler

Clone this wiki locally