Addlogvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 8: Line 8:
Prints the value of <[[gamevar]]> or <[[gamearray]]> to the console, which will also be stored inside the log file (eduke32.log).
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.
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 02: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.