Error - Game

From Creation Kit
Jump to: navigation, search

Member of: 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

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

See Also