Background for Starfield
Member of the Debug script
voidfunctionTraceFunction(stringasTextToPrint="racing function on request", intaiSeverity=0)NativeGlobal

Description

Wiki Description

Outputs a string to the Papyrus log on disk, and the Papyrus overlay. It also attaches all available information about the function that called in, including the current value of all of the function's variables and parameters.

Documentation Comment

Outputs the current function to the log, including all variable values


Parameters

  1. stringasTextToPrint="racing function on request"

    CK Wiki Description

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

  2. intaiSeverity=0

    CK Wiki Description

    The severity of the trace statement. Info, the default, will show up as green; warnings will show up as yellow; and errors as red; in the Papyrus debug text page.

    • The following values are acceptable:* 0:Info
      • 1:Warning
      • 2:Error

Examples

; Outputs "Tracing function on request" along with all available information about this function to the log
Debug.TraceFunction()
; Outputs "Tracing function on request" along with this function's information to the log, at error severity (colored red)
Debug.TraceFunction(aiSeverity = 2)

Auto-Generated Example

string myString__asTextToPrint
int myInt__aiSeverity

Debug.TraceFunction(myString__asTextToPrint, myInt__aiSeverity)

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.