How do i make lives?

benjamin

Member!
Joined
Jan 6, 2003
Messages
68
Reaction score
0
Website
Visit site
Hi..

I want to make a map like "prisoner escape" but how can i add lives?? i want to do that if everyone die, you will spawn at the previously "Check point"...

Can anyone help me here? sorry if this have been posted befor!
 

answerson

Member!
Joined
Apr 3, 2004
Messages
32
Reaction score
0
Website
Visit site
well, this would be a seris of triggers... i'm just going off the top of my head.

First of all for each check point you could have a variable, so when the players pass that check point it would set the varible to true, and the previous check point to false.

Then when all players are dead, if "check point 1 = true" then revive the players at that location"

i'm pretty sure that would work
 

Garthrs

Member!
Joined
Aug 3, 2003
Messages
130
Reaction score
0
Location
Usually buried at work
Website
Visit site
Event- Unit dies
Condition- Units in unit group "Players" (Variable, unit group)equals 0
Action
Pick every player in player group "Players" (Variable, player group) and do actions
If
Check point 1 (Boolean Variable) equals true
Then
Create 1 (whatever) for picked player in region 1 (whatever) facing blah blah
Add all units owned by picked player in region 1 to unit group "Players"
Else
Do nothing
If
Check point 2 (Boolean Variable) equals true
Then
Create 1 (whatever) for picked player in region 2 (whatever) facin blah blah
Add all units owned by picked player in region 2 to unit group "Players"
ETC...

You just need to add the units to the unit group initially and the players to the player group initially
 

New threads

Top