Jump to content
Sign in to follow this  
_qor

Respawn condition

Recommended Posts

Hey,

To adapt the respawn to my conveniences, I created a trigger with conditions which executes this simple script:

_x1 = group SBlogic createUnit ["US_Delta_Force_Assault_EP1", getMarkerPos "respawn_SB", [], 0, "NONE"];

_x1 setDir 245;

addSwitchableUnit _x1;

removeAllWeapons _x1;

disableUserInput true;

sleep 20;

disableUserInput false;

playSound "CodeBad";

So via team switch I can switch to that spawned unit.

Unfortunately there came up some disadvantages from this method:

First of all, I cant set a delay because once the "end" screen pops up, the menu doesnt seem to update. So I cant choose "team switch".

Therefore I used disableUserInput but menu points like "restart" and "end" are disabled as well.

But biggest problem is: after switching to the spawned unit, there are no actions at all. Cant switch weapons, cant get in vehicles, no open door action...

So I guess there must be another respawn method :D

Guess there is no way to have a condition for that using the description.ext respawn, is it?

I would welcome to write a simple script on my own.

How do you guys set this up?

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  

×