Jump to content
Sign in to follow this  
nubbin77

respawn question

Recommended Posts

....but I don't remember seeing anything about this.

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?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×