Background for Fallout 4
Member of the Debug script
voidfunctionTraceConditional(stringTextToPrint, boolShowTrace, intSeverity=0)Global

Description

Wiki Description

Outputs a string to the Papyrus log on disk, and the Papyrus overlay. But only if the condition is true.

Documentation String

As Trace() but takes a second parameter bool ShowTrace (which if false suppresses the message). Used to turn off and on traces that might be otherwise annoying.

Documentation Comment

Suppressable Trace


Parameters

  1. stringTextToPrint

    CK Wiki Description

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

  2. boolShowTrace

    CK Wiki Description

    If true, the trace is printed out, otherwise it is eaten by the function.

  3. intSeverity=0

    CK Wiki Description

    the severity to pass through to the trace command


Examples

; Output "Hello World" to the log, but only if the bdebug variable is true
Debug.TraceConditional("Hello, World!", bDebug)

Auto-Generated Example

string myString__TextToPrint
bool myBool__ShowTrace
int myInt__Severity

Debug.TraceConditional(myString__TextToPrint, myBool__ShowTrace, myInt__Severity)

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.