Background for Fallout 4
Member of the Debug script
voidfunctionTraceSelf(ScriptObjectCallingScript, stringFunctionName, stringStringToTrace)Global

Description

Wiki Description

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"

Documentation String

Convenient way to trace the script name and optional function name as a prefix to the trace string
Note, always pass in SELF as the CallingScript

Documentation Comment

jduvall


Parameters

  1. ScriptObjectCallingScript

    CK Wiki Description

    The script to print out

  2. stringFunctionName

    CK Wiki Description

    The function name to print out

  3. stringStringToTrace

    CK Wiki Description

    The text that should be printed to the log and text page.


Examples

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

Auto-Generated Example

ScriptObject myScriptObject__CallingScript
string myString__FunctionName
string myString__StringToTrace

Debug.TraceSelf(myScriptObject__CallingScript, myString__FunctionName, myString__StringToTrace)

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.