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...group then at base.  (Read 1736 times)

0 Members and 1 Guest are viewing this topic.

nubbin77

  • Guest
respawn...group then at base.
« on: 28 Sep 2004, 02:30:45 »
I posted this over at the official forums but didn't get a response (not surprised because common conception is that this isn't possible).  It was even asked in the respawn topic at the top of this forum.   However - I have seen that it is possible to do this now!

I want to make a script that makes you respawn team until you have no one left and then respawn at..."respawn_west" marker.

I didn't think this was possible until I saw gwcti had the option to respawn team then at base when all were dead.  Here's part of their code.

#SetRespawnTeam

_count = 0
_units = Units Group _respawnedUnit
_units = _units - [_respawnedUnit]
_totalUnits = Count _units

_nearestDistance = 100000
_nearestUnit = ObjNull

? (_totalUnits < 1):goto "InitUnit"

#InitUnit

? [_respawnedUnit] _respawnedUnit SetPos GetMarkerPos "Respawn_west"


I don't know what to do to activate this though.  CTI has an option menu with a GUI within the game.  I wanted something similar... that just does the script right off the bat.

Any ideas or does anyone have anything like this already?