Kill all monsters before changing level
Moderator: InsideQC Admins
7 posts
• Page 1 of 1
Kill all monsters before changing level
I want to ensure that all monsters in the level are dead before allowing the player to use the slipgate and go to the next level. Is this possible?
- JasonX
- Posts: 411
- Joined: Tue Apr 21, 2009 2:08 pm
Easy. When you kill a monster add it to a variable... Then in the change level function, check if monsters killed are equal to monsters spawned... I'm horrible at explaining buy I did it in a mod of mine.
-

Error - InsideQC Staff
- Posts: 865
- Joined: Fri Nov 05, 2004 5:15 am
- Location: VA, USA
defs.qc is a pretty handy resource sometimes:
- Code: Select all
float total_monsters;
float killed_monsters;
-

Supa - Posts: 164
- Joined: Tue Oct 26, 2004 8:10 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
