Log

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);
}

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.