Jump to content
Sign in to follow this  
kocrachon

Group Check Question

Recommended Posts

Ok, so I am trying to make a trigger that activates when a whole group of people enter a vehcile. The question is, how do I make a group, and how to do I make the trigger activate with the group?

Like for example, if I named the group, S1, would the command work like this for the condition

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(Group S1) in Helicopter1

Or

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">((Group S1) in Helicopter1)

Thanks for the help

Share this post


Link to post
Share on other sites

in can only be used to check individual objects, not groups.

However, you can use count. I haven't done any ArmA scripting in a long time, but from memory something like this should work:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(_x in vehicleName) count units groupName == count units groupName

Failing that, this question has been asked and answered before.

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  

×