Advertisement
metalx1000

Doom zscript GZdoom run at level start

Apr 18th, 2024
976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1.  class HelloWorldHandler : EventHandler
  2.  {
  3.      override void WorldLoaded (WorldEvent e)
  4.      {
  5.          
  6.           //displayes messages to console
  7.          console.printf("Hello World!");
  8.          Console.Printf(TEXTCOLOR_BLUE .. "Hello\n");
  9.  
  10.          //Play a Sound
  11.          S_StartSound ("grunt/death", CHAN_VOICE);
  12.      }
  13.  }
  14.  
  15.   // Put this in a MAPINFO lump
  16.  gameinfo
  17.  {
  18.      AddEventHandlers = "HelloWorldHandler"
  19.  }
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement