Log

From ZDoom Wiki
Jump to: navigation, search

void Log(item(s));

Usage

Log will print something in the log area of the screen (top left), as well as logging it to the console. It uses the same parameter format as the Print function.

Example

script 1 (void)
{
          AmbientSound("items/quaddamage", 127);
          Log(s:"You've been granted Quad Damage!");
          GiveInventory("PowerQuadDamage", 1);

          Delay(25 * 35);

          AmbientSound("items/quadwearingoff", 127); 
          Log(s:"Quad Damage is running out...");

          Delay(5 * 35);

          AmbientSound("items/quadgone", 127);
          TakeInventory("PowerQuadDamage", 1);
}