OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Robbo 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
-
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
;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