Jump to content

Recommended Posts

Hi,

I'm kinda new to the whole editing missions thing, so I've been using the RESPAWN ON DEATH option in all of my missions.

I wish to improve that, so I wanna make it so SQUAD A could respawn on any of HIS squadmates,        and SQUAD B could respawn on any of HIS squadmates, but SQUAD A can't respawn on SQUAD B.

 

I found out how to let players respawn on other players but how can I restrict a player to respawn only at certain respawn positions?

 

Thanks for any replies!

Share this post


Link to post
Share on other sites

You could use the MPrespawn eventhandler:

player addMPEventHandler ["MPRespawn", {getPosATL (selectRandom units squad1)}];

Returning a position to this eventhandler makes the player respawn at this position, so returning a random position from the units of squad1 will place this player accordingly.

 

Cheers

  • Like 1

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

×