Addlogvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Mention "al" synonym on addlogvar page.
mNo edit summary
 
(One intermediate revision by the same user not shown)
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).
 
As of eduke32 r9572, the command also supports logging of constants, actors vars, player vars and struct members directly. This will also display the index used to access the struct array.


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

Latest revision as of 03:24, 30 August 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).

As of eduke32 r9572, the command also supports logging of constants, actors vars, player vars and struct members directly. This will also display the index used to access the struct array.