Sign in to follow this  
Followers 0

Monster spawner

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?

Share this post


Link to post

For G/ZDoom

Perhaps something like this:

#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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0