Warning - Game

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Game Script

Sends a warning to the Papyrus script log and the game's warning system.

Syntax[edit | edit source]

Function Warning(string asMessage) native global betaOnly

Parameters[edit | edit source]

  • asMessage: The message to emit as a warning.

Return Value[edit | edit source]

None

Examples[edit | edit source]

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

See Also[edit | edit source]