Jump to content
Sign in to follow this  
REN67

trigger help for setcaptive

Recommended Posts

how would i set up a trigger so that when bluefor enters the trigger zone he becomes captive and opfor doesnt shot at him

Share this post


Link to post
Share on other sites

thanks that's works

---------- Post added at 01:27 PM ---------- Previous post was at 01:14 PM ----------

well that worked for when they enterd the zone but when they left the zone they stayed captive so how would i make them become uncaptive hen they leave the zone

Share this post


Link to post
Share on other sites

Put a name in your "safe zone trigger" and create a new trigger:

Activation: None / Repeatedly

Condition: captive player AND player not in list TRIGGERNAME

On Activation: player setCaptive false

Share this post


Link to post
Share on other sites

i cant get that to work how would the code look i am new at this so bare with me

Share this post


Link to post
Share on other sites

ok now how would i do that for the whole squad it seams to work only for one player and not the squad see what i am trying to do is a undercover ops you have to travle threw a hostal town undercover but when you get close to your objective you are no longer captive

Share this post


Link to post
Share on other sites

Trigger:

activation: civilian, present, repeatedly

name: trgRemCaptive

condition: this

Init.sqf:

[] spawn {
 while {sleep 2; {captive _x} count playableunits > 0} do {
   {_x setCaptive false} foreach list trgRemCaptive;
 };
};

Share this post


Link to post
Share on other sites

the script Buliwyf gave me is working out for me thanks Buliwyf :bounce3:

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  

×