Jump to content
Sign in to follow this  
WWIII

Respawn all team when one of team is killed

Recommended Posts

Hi,

I think i seen this before, but forget where to find it, is it possible to respawn all the team to respawn point when one of the team player is killed.

Share this post


Link to post
Share on other sites

I don't really understand.

It sounds like you're saying that if 1 member of the BLUFOR team dies, respawn all 20 members of the BLUFOR team...

Share this post


Link to post
Share on other sites

i mean only the players in my group, so that players must play in team work,

Share this post


Link to post
Share on other sites

Add a "killed" eventhandler to player units, make it either do setpos or setdamage to the units in the group of the killed unit.

Share this post


Link to post
Share on other sites

i am not good at scripting, can let me know the how to do this script

Share this post


Link to post
Share on other sites

I have another suggestion that I use for coops:

I create a "bunker" loaded with weapons&ammo. Sandbags and wires surround it so players cannot exit. Main doors open via trigger unitcount if there are more than 3 players inside the bunker. Bunker doors automatically close after 10 seconds. Doors can be also opened from outside by a single player.

Share this post


Link to post
Share on other sites

you could use "setPos getMarkerPos" to beam all other team member to the respawn marker?!

Share this post


Link to post
Share on other sites

Whats about this? Write it in to the init of each unit. I think setPos is better than setDamage because I think the killed eventhandler will trigger if you use setDamage 1, but thats not needed.

_killedhandler = this addEventHandler ["killed", {{_x setPos (getMarkerPos "respawn_west")} forEach (units group _this)}]

I havent tested it so please reply of there are syntax errors.

Share this post


Link to post
Share on other sites

You might want to put a delay in there so they don't all get warped the instant the guy eats lead. Make it the same time as the respawn time and it should work pretty nicely.

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  

×