Doom Comic
User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Monster spawner
 
Author
All times are GMT. The time now is 13:17. Post New Thread    Post A Reply
dufferton
Warming Up


Posts: 14
Registered: 06-13


Im trying to make a spawner for doom that will spawn a demon, every second.
can i have a bit of code to help me with this?

Old Post May 6 2014 22:20 #
dufferton is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Kappes Buur
Senior Member


Posts: 1062
Registered: 11-02


For G/ZDoom

Perhaps something like this:
code:
#include "zcommon.acs" script 100 OPEN // SpawnSpot (str classname, int spottid [, int tid [, int angle]]) // 72:ThrustThing (angle, force, nolimit, tid) // 176:Thing_ChangeTID (oldtid, newtid) { delay (30); SpawnSpot ("Demon", 1, 10, 128); ThrustThing (Random (1, 180), 20, 1, 10); Thing_ChangeTID (10, 0); restart; }
http://zdoom.org/wiki/SpawnSpot
http://zdoom.org/wiki/ThrustThing
http://zdoom.org/wiki/Thing_ChangeTID

And an example pwad.

Last edited by Kappes Buur on May 6 2014 at 23:56

Old Post May 6 2014 23:25 #
Kappes Buur is offline || Blog || Post History || Add Buddy IP || Edit || Quote
dufferton
Warming Up


Posts: 14
Registered: 06-13


it works! :D thanks

Old Post May 7 2014 20:06 #
dufferton is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 13:17. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Monster spawner

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.