Log

From ZDoom Wiki
Revision as of 22:04, 9 February 2013 by Deded007 (talk | contribs) (→‎Example: formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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);
}