Error - Game

From the Fallout4 CreationKit Wiki
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]