diag_frame(var);

Prints the value of the var once per frame into the acklog.txt file as long as the diag_mode variable is set at 1 or the [F11] statistics panel is visible. This way the behavior of a variable or entity property at every frame can be logged at a certain moment by adding this function to the code, then pressing [F11]  for the observation to start. For observing entity variables, use a unique pointer for that entity (not you or my). Up to 10 variables can be observed this way.

Example:

diag_frame(time_frame);
diag_frame(time_step);
diag_frame(time_idle); // logs the 3 variables every frame when [F11] was pressed.

See also:

-diag, diag, diag_var, diag_status, diag_mode

► latest version online