Background for Fallout 4
Member of the Game script
voidfunctionError(stringasMessage)NativeGlobalBetaOnly

Description

Wiki Description

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

Documentation Comment

Issue an error with stack trace to the script log and warning system


Caveats


Parameters

stringasMessage

CK Wiki Description

The message to emit as an error.


Examples

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

Auto-Generated Example

string myString__asMessage

Game.Error(myString__asMessage)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.