Error - Game

Member of: Game Script

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

SyntaxEdit

Function Error(string asMessage) native global

ParametersEdit

  • asMessage: The message to emit as an error.

Return ValueEdit

None

ExamplesEdit

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

See AlsoEdit