A_Log

From ZDoom Wiki
Jump to: navigation, search

void A_Log (string whattoprint [, bool local])

Usage

Logs a string to the console and displays it on the screen.

The printed text can be formatted by using the escape characters, in a similar manner to how it is done with Print and Log ACS functions.

Parameters

  • whattoprint: The string to log.
  • local: If true, the string 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

TNT1 A 0 A_Log("Hello World")

This will log the above string, with Hello colored in red and World in blue.

TNT1 A 0 A_Log("\cGHello \cHWorld")

See also