Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → simple (i think) cog request
simple (i think) cog request
2001-09-22, 11:10 PM #1
Hi,

I'm making a co-op level and i need a room in it with about 5 enemies, which, when killed, will respawn immediately.
So if i were to kill 1, he would immediately respawn (as opposed to killing them all then they respawn)

If this isn't clear enough just tell me and i'll write it again as i've just got up and i can't really think at this minute.

Thanks!

------------------
I need food. Lots of food.
I need food. Lots of food.
2001-09-23, 6:31 AM #2
Oops, sorry I forgot I wasn't in the cog forum, please move this topic there?

Thanks.

------------------
I need food. Lots of food.
I need food. Lots of food.
2001-09-27, 7:31 AM #3
Don't like to nag, but please, I really need this.

Thanks.

------------------
I need food. Lots of food.
I need food. Lots of food.
2001-09-29, 9:37 AM #4
Symbols
Message Startup
Message Activated
Message Killed
Surface Switch
Thing Ghost0
Thing Ghost1
Thing Ghost2
Thing Ghost3
Thing Ghost4
Int Actor0=0 Local
Int Actor1=0 Local
Int Actor2=0 Local
Int Actor3=0 Local
Int Actor4=0 Local
Template Typex
Int I=0 Local
End
Code
Startup: Setwallcel(Switch, 0); Return;
Activated: If(Getsenderref() == Switch) { If(Getwallcel(Switch) == 0) { Setwallcel(Switch, 1);
For(I = 0; I < 5; I = I + 1) { Actor0 = Creatething(Typex, Ghost0); Capturething(Actor0); } }
Else If(Getwallcel(Switch) == 1) { Setwallcel(Switch, 0); For(I = 0; I < 5; I = I + 1) { Destroything(Actor0); } } } Return;
Killed: For(I = 0; I < 5; I = I + 1) { If(Getsenderref() == Actor0) { Actor0 = Creatething(Typex, Ghost0); Capturething(Actor0); } } Return;
End

It works, I tested it. The switch turns it on/off. Quite simple, actully.
And when the moment is right, I'm gonna fly a kite.
2001-09-29, 2:06 PM #5
Woohoo thanks a lot [http://forums.massassi.net/html/smile.gif]

------------------
I need food. Lots of food.
I need food. Lots of food.

↑ Up to the top!