Jump to content
Sign in to follow this  
Idomass

Respawn in group?

Recommended Posts

Hi,

Im trying to create a respawn in your group that is working with the End game systems (revive and respawn map) unfortunately without success yet.

My question is: is  it possible to respawn in your group if it in fighting area? (Your group not the squad leader).

 

Thank ahead for the helpers!

Share this post


Link to post
Share on other sites

Im trying to create a respawn in your group that is working with the End game systems (revive and respawn map)

 

Don't know what you mean by that and I don't really have time right now, but the easiest way to realize a respawn in your group is to set the "respawn" parameter in your Description.ext as this:

respawn = 4;

or

respawn = GROUP;

But be aware that with that setting, according to the BIKI, if no AI is left, you'll become a seagull.

Share this post


Link to post
Share on other sites

Already tried this it had some problems with seagull thing, I'm asking for option to respawn near your teammates, That's it.

Share this post


Link to post
Share on other sites

Try this untested quick'n'dirty solution:

player addEventHandler ["Killed", {playerGroup = group player;}];
player addEventHandler ["Respawn",
    {
        if(!isNil "playerGroup" && {!isNull playerGroup}) then
        {
            player setPosATL getPosATL leader playerGroup;
            // [player] joinSilent playerGroup;    //don't know if death means "leave group"
        };
    }
];

If setting "playerGroup" inside a "Killed" event handler does not work, set it some earlier point.

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  

×