Jump to content
Sign in to follow this  
bangabob

Multiple side respawn

Recommended Posts

Hi. I have an odd problem. I am using ACE wounds with the basic description.ext for respawn.

I have two playable sides in my mission. BLUFOR and INDEPENDENT.

I want INDEPENDENT to respawn. but i don't want BLUFOR to respawn. (If that makes sense)

I have already tried removing the respawn_gurilla but the independent just respawn at the BLUFOR marker instead.

Please help

Share this post


Link to post
Share on other sites

I'm fairly sure that you can't specify which side that can respawn, with its current implementation.

You could force blufor players into ACE spectator to fake that they can't respawn.

Move the respawn_west marker somewhere distant and try this in your init.sqf, can't test it atm so tell me if it works.

ace_sys_spectator_can_exit_spectator = false;
if (!isDedicated) then {
 waitUntil {!isNull player};
 if ((side player) == WEST) then {
   player addEventHandler ["Respawn", 
   {
      player setVariable ["ace_sys_spectator_exclude", true,true]; // exclude the respawned player from spectating script
      [] spawn ace_fnc_startSpectator; // start ace spectator
   }];
 };
};

Note that players can still connect/reconnect and be able to play, that requires some more scripting to fix.

Share this post


Link to post
Share on other sites

Cheers. Implemented it and it works.

But as you say it is a fake way. I also placed the respawn marker in the sea to make sure people cant just keep playing

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  

×