Background for Fallout 4
Member of the Debug script
voidfunctionTraceConditionalGlobal(stringTextToPrint, GlobalVariableShowTrace)Global

Description

Wiki Description

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

Documentation String

As TraceConditional() but checks to make sure the global exists to avoid error messages in the log


Caveats


Parameters

stringTextToPrint

CK Wiki Description

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

GlobalVariableShowTrace

CK Wiki Description

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


Examples

; Output "Hello World" to the log, but only if the DebugGlobal global is true
Debug.TraceConditionalGlobal("Hello, World!", DebugGlobal)

Auto-Generated Example

string myString__TextToPrint
GlobalVariable myGlobalVariable__ShowTrace

Debug.TraceConditionalGlobal(myString__TextToPrint, myGlobalVariable__ShowTrace)

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.