A_LogInt

From ZDoom Wiki
Jump to: navigation, search

void A_LogInt (int whattoprint [, bool local])

Usage

Logs an integer value to the console and displays it on the screen.

Parameters

  • whattoprint: The integer value to log.
  • local: If true, the value is logged if the player is either looking out the calling actor's eyes, or the calling actor is the player and the player is looking out the eyes of a non-monster actor. Default is false.

Examples

Basic example: this logs the number 5.

SOUL A 6 A_LogInt(5)


Whenever this revenant suffers pain, its current health is logged.

ACTOR InformativeRevenant : Revenant
{
    States
    {
    Pain:
        SKEL L 5
        SKEL L 5 A_Pain
        SKEL L 0 A_LogInt(health) // See DECORATE expressions.
        Goto See
    }
}

See also