- Found in:
- Vanilla
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
- Debug
- Debug.MessageBox(...)
- Debug.Notification(...)
- Debug.Trace(...)
- Debug.TraceConditional(...)
- Debug.TraceAndBox(...)
- Debug.TraceStack(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
