Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HelloWorldHandler : EventHandler
- {
- override void WorldLoaded (WorldEvent e)
- {
- //displayes messages to console
- console.printf("Hello World!");
- Console.Printf(TEXTCOLOR_BLUE .. "Hello\n");
- //Play a Sound
- S_StartSound ("grunt/death", CHAN_VOICE);
- }
- }
- // Put this in a MAPINFO lump
- gameinfo
- {
- AddEventHandlers = "HelloWorldHandler"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement