Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Rollirouland

How to bail out an AI crew via trigger?

Recommended Posts

My plan is it to bail out a AI-crew out of a chopper.

I already gave them the parachute via script but i dont get it how to get them out of the chopper if the chopper moves about the trigger.

Thx for answers :)

Share this post


Link to post
Share on other sites
{
unassignVehicle _x;
_x action ["EJECT", vehicle _x];
sleep 0.4;
} foreach crew chopper;

Share this post


Link to post
Share on other sites

can you explain me what i have to do with this code and what i have to fill in :)

I always fill up the passenger seats with that : {_x moveInCargo <VEHICLE>} foreach units <GROUP>;

i think this is ok so?

i only want to bail out this group at a certain point on the map

thx that you help such a newbie :)

Share this post


Link to post
Share on other sites

You'd do exactly the same but instead of the moveInCargo you'd use the unassignVehicle and action from my code.

To bail out at a specific point just add the code to a trigger or put it in a script and run the script from the trigger.

Share this post


Link to post
Share on other sites

For every vehicle _x i have to fill in my vehicle name, right?

{      unassignVehicle heli;      _x action ["EJECT", heli];      sleep 0.4;  } foreach crew chopper;  

(heli is the name ;)

i filled in in the trigger "on akt" but nothing works-.-

still thanks that you help such a newbie ;)

Share this post


Link to post
Share on other sites

Nope, _x is a special variable which will automatically be replaced by the current value of an array as it works through each key.

So you'd use exactly this:

{
   unassignVehicle _x;
   _x action ["EJECT", vehicle _x];
   sleep 0.4;
} foreach units groupName; 

If you use crew chopper the pilot and co-pilot would jump out too! :)

Share this post


Link to post
Share on other sites

Are AI parachutes working atm? Last I tried, the AI open their parachute(s) & it kills them. There are tickets about the issue. Here's one.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×