Addlogvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Mention "al" synonym on addlogvar page.
mNo edit summary
Line 1: Line 1:
'''addlogvar''' <[[gamevar]]>
<span {{code}}>'''addlogvar''' <[[gamevar]]> </span>


Prints the value of <[[gamevar]]> to the console, resulting in it being logged to eduke32.log.
<span {{code}}>'''addlog''' <[[gamevar]]></span>


The '''addlogvar''' command can be abbreviated as '''addlog''' or '''al'''.
<span {{code}}>'''al''' <[[gamevar]]></span>
 
 
Prints the value of <[[gamevar]]> or <[[gamearray]]> to the console, which will also be stored inside the log file (eduke32.log).
 
Currently does not support logging [[Full_list_of_structure_members|struct members]] directly, and the game will crash upon trying to do so.


[[Category:EDuke commands]]
[[Category:EDuke commands]]

Revision as of 06:13, 10 January 2021

addlogvar <gamevar>

addlog <gamevar>

al <gamevar>


Prints the value of <gamevar> or <gamearray> to the console, which will also be stored inside the log file (eduke32.log).

Currently does not support logging struct members directly, and the game will crash upon trying to do so.