TraceSelf - Debug

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Debug Script

Outputs a string to the Papyrus log on disk, and the Papyrus overlay, pretty-printing the passed in self object and function name.

The output format is: "[Script]-->FunctionName(): Text"

Syntax[edit | edit source]

Function TraceSelf(ScriptObject CallingScript, string FunctionName, string StringToTrace) global debugOnly

Parameters[edit | edit source]

  • CallingScript: The script to print out
  • FunctionName: The function name to print out
  • StringToTrace: The text that should be printed to the log and text page.

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Outputs something like: "[MyScript (020001FD83)]-->DoStuff(): Hello World!"
Debug.TraceSelf(self, "DoStuff", "Hello World!")

See Also[edit | edit source]