Error - Game

From the Fallout4 CreationKit Wiki
Revision as of 17:13, 26 May 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Game Script

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

Syntax[edit | edit source]

Function Error(string asMessage) native global

Parameters[edit | edit source]

  • asMessage: The message to emit as an error.

Return Value[edit | edit source]

None

Examples[edit | edit source]

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

See Also[edit | edit source]