Skip to content

systemChat

ffredyk edited this page Jul 23, 2026 · 1 revision

systemChat

Category

Output (Arma Compat)

Arity

UnarysystemChat <value>.

systemChat <any>

Description

Sends a system chat message. This is an Arma SQF compatibility command — fires the host's OnPrint event with a [CHAT] prefix. The host handles rendering (chat panel, console, etc.).

How It Works

Converts argument to string, prepends "[CHAT] ", fires OnPrint. Registered by DeclareArmaCompatCommands().

Usage

Chat messages

systemChat "Player joined the server";
systemChat f"{_killer} eliminated {_victim}";

System announcements

systemChat "=== Round starting in 10 seconds ===";
systemChat "Server restarting in 5 minutes";

Debug chat

if (_debugMode) then {
    systemChat f"[DEBUG] AI count: {count _aiUnits}";
};

Loop output

_scores = [10, 45, 23, 67];
_scores forEach {
    systemChat f"Score: {_x}";
};

Thread Safety

Thread-safe. The OnPrint event fires synchronously.

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