Home   Help Search Login Register  

Author Topic: Respawn at captured flags  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

Robbo

  • Guest
Respawn at captured flags
« on: 25 Jan 2003, 11:18:06 »
Hey,
I'm trying to make a respawn similar to the one on Nogova's multiplayer mission, Demolition Squad, where if i capture a flag i respawn at the flags location instead of my original starting location, i've searched for an answer but cannot find any.
So can anyone help me?
Thanks in advance  ;)
Robbo

Stix

  • Guest
Re:Respawn at captured flags
« Reply #1 on: 25 Jan 2003, 19:33:50 »
have the captured flag set a variable to a number aka if West has it is 1 if East has it is 2

West Guy:
have a script that detects if guy is dead the have it detect when he is alive again then if the variable is 1 (west) then setpos him to the flag if variable is not 1 then loop it like this
 

Code: [Select]
;Variable is flagStat
#start
@!alive Dude
@alive Dude
?(side Dude == West): goto "westStuff"

;East
?(flagStat == 2):setpos POSITION HERE
exit

#westStuff
?(flagStat == 1): setpos POSITION HERE
exit

syntax might not be right but u get the idea