I managed to get respawn working nicely in my multiplayer levels thanks to the pinned topic at the top of this board, but now I want to end the level when a certain amount of lives have been used up.
Basically, I have two teams of human players and they have two ways to win. One is to infiltrate the enemy base and destroy a load of computer equipment, and the second is to kill the enemy team enough times to exhaust their life pool. The computer destruction part if set up, but I can't get the life pool to work.
My respawning is set up to respawn back at the respawn_west/east markers. This is what I have that doesn't work:
-A trigger which activates on
getdammage player == 1 (I've also tried
not alive player)
when this is true it adds one to a variable "deaths_west"
-Another trigger which activates on
deaths_west > 9 which then ends the game.
This doesn't work though. I'm new to this scipting business, so I'm thinking the problem is either the variable isn't being added to, because the triggers aren't detecting death (maybe the respawning means the player is never dead nor has a damage of 1), or that the variable just isn't work (I don't know how to initialise one / make it global / etc).
Any help appreciated.