Jump to content
Sign in to follow this  
HatchetJesus

Triggered Respawn

Recommended Posts

I'm trying to make a mission similar to the game mode "countdown" in red orchestra 2.

For those who don't know - Think of it like blitzkrieg, but you only respawn if the objective is taken.

My question is how do I make it so that all players (alive and dead) respawn at a marker? (East and West on 2 different markers obviously) :)

Thanks

Share this post


Link to post
Share on other sites

You need to set your respawn to Base in your description.ext.

respawn = 3;

And then create proper markers called:

respawn_west

respawn_east

respawn_guerrila

respawn_civilian

Note that this way, players will only respawn when appropriate (When they die).

If you want to manually respawn them, you can either teleport them or kill them :)

By killing them:

{
  if (isPlayer _x) then {
     _x setDamage 1;
  };
} forEach allUnits;

By teleporting them:

{
  if (isPlayer _x) then {
     switch (side _x) do {
        case WEST : { _x setPos getMarkerPos "respawn_west"; };
        case EAST : { _x setPos getMarkerPos "respawn_east"; };
        case RESISTANCE : { _x setPos getMarkerPos "respawn_guerrila"; };
        case CIVILIAN : { _x setPos getMarkerPos "respawn_civilian"; };
     };
  };
} forEach allUnits;

Edited by neokika

Share this post


Link to post
Share on other sites

Thanks, that does makes alot of sense!

So my next question is this.. How do I stop the players from respawning unless the trigger is activated?

Share this post


Link to post
Share on other sites

you dont... you can make them spawn in a remote area of the map, then teleport them to the pos where you want them to "spawn" when you want to...

Share this post


Link to post
Share on other sites
Thanks, that does makes alot of sense!

So my next question is this.. How do I stop the players from respawning unless the trigger is activated?

You can always

disableUserInput true;

until trigger is activated then

disableUserInput false;

this way your players will not even be able to leave the game without alt+F4

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  

×