Cyberdemon
Register | 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 20:42. 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 05-06-14 22:20 #
dufferton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Kappes Buur
Forum Regular


Posts: 842
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 05-06-14 at 23:56

Old Post 05-06-14 23:25 #
Kappes Buur is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
dufferton
Warming Up


Posts: 14
Registered: 06-13


it works! :D thanks

Old Post 05-07-14 20:06 #
dufferton is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 20:42. 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.