Jump to content
Sign in to follow this  
enforcer4100

setcaptive true and specific area's

Recommended Posts

Hi all,

I am working on a mission where forces have to fastrope into the objective.

However the enemy has RPG's and HMG's so when the helo's start to hover they immediatly start firing at it.

To prevent this I tried to create a trigger with:

activation: blufor

present

on activation: helo1 setcaptive true

on deactivation: helo1 setcaptive false

with helo1 being the insertion helo.

For some reason this isn't working. the enemy keeps shooting at the helo.

mods and scripts:

-All ace mods

-UPSMON

can anyone help me with this?

TA enforcer4100

Share this post


Link to post
Share on other sites

I believe you have to setCaptive the crew of the helicopter. Save them as a variable and setCaptive false them on deactivation.

Share this post


Link to post
Share on other sites
I believe you have to setCaptive the crew of the helicopter. Save them as a variable and setCaptive false them on deactivation.

maybe I had to be more specific but it is a MP co-op mission.

I only want it so that the choppers can't be shot at for let's say 15 minutes or so

Share this post


Link to post
Share on other sites

set the heli + crew to captive and set {_x setCaptive true;}forEach playableUnits; and do the same but in reverse when they have roped down.

if that fails try flagging the heli to allowdamage false

Share this post


Link to post
Share on other sites

well got it fixed.

I did it like I posted but I syncronised the pilot with the area trigger.

And now the helo is protected inside the trigger area.

drawback:

-only works if your pilot starts outside of the chopper (editor problem)

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  

×