Jump to content
Sign in to follow this  
kocrachon

Not in helicopter check

Recommended Posts

I am trying to set up a trigger to be detected when a group is not in the helicopter, right now I am using this script.. obviously it doesnt work, because I have no clue how to make a good one. Anyone able to help out?

condition

NOT ([group unit1] in bird1)

Share this post


Link to post
Share on other sites

Out of the top of my head i'd say:

{(_x in crew bird1)} count units group unitt1 != count units group unit1;

If the syntax is right there's still a problem - it only works if the group are the only ones aboard, so they also fly this thing.

The line you have to use for your trigger depends on whether there are additional pilots and gunner aboard or if those seats are used by your group. What do you need in your case?

Edited by ])rStrangelove

Share this post


Link to post
Share on other sites
({vehicle _x == bird1} count units group unit1) < 1;

this should do the job, no matter where they board it.

Share this post


Link to post
Share on other sites
)rStrangelove;1311935']Out of the top of my head i'd say:

{(_x in crew bird1)} count units group unitt1 != count units group unit1;

If the syntax is right there's still a problem - it only works if the group are the only ones aboard' date=' so they also fly this thing.

The line you have to use for your trigger depends on whether there are additional pilots and gunner aboard or if those seats are used by your group. What do you need in your case?[/quote']

I am being flown in by a AI helicopter, so I am not the crew.

({vehicle _x == bird1} count units group unit1) < 1;

this should do the job, no matter where they board it.

For some reason its not working for me...

Also can anyone confirm that I am grouping my units right?

Soldier1 is the leader of my group, I have this in his init

unit1 = group this;

Edited by HavocDemon

Share this post


Link to post
Share on other sites

unit1 = is a group

Soldier1 = is a unit

means you need to change the syntax to

({vehicle _x == bird1} count units unit1) < 1;

Share this post


Link to post
Share on other sites

if you have this:

unit1 = group this;

then use this:

({vehicle _x == bird1} count units unit1) < 1;

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  

×