Mod:Creation Kit/Error - Game

Member of: Mod:Creation Kit/Game Script

Sends an error and stack trace to the Papyrus script log and the game's warning system.

Syntax
Function Error(string asMessage) native global

Parameters

 * asMessage: The message to emit as an error.

Return Value
None

Examples
if !Target Game.Error(self + " has no target!") endIf
 * Emit an error if the script user didn't give us a target