TraceSelf - Debug

From the Fallout4 CreationKit Wiki
Revision as of 16:39, 1 December 2015 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus Category:Papyrus Debug Only Functions '''Member of:''' Debug Script Outputs a string to the Papyrus log on disk, and the Papy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]