Scripts / Need a script that when all the zombies are dead, a key spawns

Author
Message
Nevix
4
Years of Service
User Offline
Joined: 23rd Dec 2019
Location:
Posted: 26th Dec 2019 22:55
Hello everyone!

I started using Gameguru recently but I don't know that much about LUA script. I'm developing a game and I need a script so they cannot bypass that certain level by just running to the win zone.

I need a script which activates a key (or opens a gate) when all zombies or entities have less than 0 health.

All help is appreciated!
bluemeenie195
5
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 27th Dec 2019 04:20
This link to the smallg's script ( kill x enemies to open door) will work for that.

https://forum.game-guru.com/thread/207801?page=10#msg2532248
PM
Nevix
4
Years of Service
User Offline
Joined: 23rd Dec 2019
Location:
Posted: 27th Dec 2019 08:08
Thanks for the help.

However, when i try his script, the killcounter only goes down once with -1 (4-1=3), even if i killed all the enemies which have the ai script and the same entity name.

It works on every zombie, it's just the counter that doesn't work.

Login to post a reply

Server time is: 2024-03-28 21:07:18
Your offset time is: 2024-03-28 21:07:18