Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Respawn at captured flags  (Read 1772 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