FatalError

Category: Messages
Since engine version: 4.9.7.0 CR

Description

Triggers an error which aborts the current script execution. If debu mode is activated it is shown as ingame and log message including the stack trace, just like when errors are triggered from the engine.

Syntax

void FatalError (string szMessage);

Parameter

szMessage:
Text to be displayed

Example

if(!GetLeague()) FatalError("Scenario must be played in league!");
Generates an error if league is not activated.
See also: Format, Log, Message
Fulgen / Clonk Wiki, Juli 2016