Jump to content
Sign in to follow this  
kdk11

group syncing

Recommended Posts

Is there a way to group 2 groups to one trigger? When I try it in editor it does not work for some reason?! It would be handy to be able to do this or find another way of doing the same thing

Share this post


Link to post
Share on other sites
Is there a way to group 2 groups to one trigger? When I try it in editor it does not work for some reason?! It would be handy to be able to do this or find another way of doing the same thing

Use code instead, what is it you want to do? Check for all units in the group being present? Check for at least one group member present? What are your group names and what side do they belong to?

Share this post


Link to post
Share on other sites

You can't group a trigger with more one group, but there's a way to do something similar. I'm not home, so I don't know the exact syntax off my head, but you can set the trigger to go off on anyone, but set the condition to check the count of people in the trigger for either group being > 0. Once again, don't quote me on the syntax, but something along these lines should do the work.

{_x in thislist} count units group1 >= 0 or {_x in thislist} count units group2 >= 0;

Share this post


Link to post
Share on other sites
Use code instead, what is it you want to do? Check for all units in the group being present? Check for at least one group member present? What are your group names and what side do they belong to?
I have a conversation setup that uses triggers. When I move into the trigger with blufor it works because the trigger is set for blufor present. It also works for independant if i change it to independant. What I need it to do is realise if either independant or blufor walk into it then it should become active. SealTeamSixAlpha is blufor whilst SealTeamSixBravo is independant. I just want it to trigger when anyone from these squads enter it. There are 4 members to each squad.

You can't group a trigger with more one group, but there's a way to do something similar. I'm not home, so I don't know the exact syntax off my head, but you can set the trigger to go off on anyone, but set the condition to check the count of people in the trigger for either group being > 0. Once again, don't quote me on the syntax, but something along these lines should do the work.
I tried this mate. The trigger just activates straight away because of the civilian being present in that location

Share this post


Link to post
Share on other sites
I have a conversation setup that uses triggers. When I move into the trigger with blufor it works because the trigger is set for blufor present. It also works for independant if i change it to independant. What I need it to do is realise if either independant or blufor walk into it then it should become active. SealTeamSixAlpha is blufor whilst SealTeamSixBravo is independant. I just want it to trigger when anyone from these squads enter it. There are 4 members to each squad.

set trigger to

Anybody

Present

Condition: {_x in thisList} count units SealTeamSixAlpha > 0 or {_x in thisList} count units SealTeamSixBravo > 0;

Share this post


Link to post
Share on other sites

Yeah tried that and for some reason caused the trigger to activate imediately. However Kylania told me to use "player in thislist" with Anybody present and that does the job :)

Share this post


Link to post
Share on other sites
Yeah tried that and for some reason caused the trigger to activate imediately. However Kylania told me to use "player in thislist" with Anybody present and that does the job :)

Did you try it how I did it or the example posted by the guy above me? I you use >=0 that will trigger if none of the group members are in it.

Share this post


Link to post
Share on other sites

That works too, but note that _any_ other player will trigger the trigger, so if there's ever any reason to keep the conversation from some players, that won't work.

Share this post


Link to post
Share on other sites
Did you try it how I did it or the example posted by the guy above me? I you use >=0 that will trigger if none of the group members are in it.

Oh I didnt even notice that change in script sorry.

Share this post


Link to post
Share on other sites
Oh I didnt even notice that change in script sorry.

>=0 is saying more than or equal to none, that will not work to check if anybody is in the trigger, it will basically just check that nobody is in it.

examples:

You want > 0 to check for at least 1 group member

>=2 to check for 2 or more group members

== 0 to check for no group members

and to check for all group members use:

({_x in thisList} count units groupname) == (count units groupname)

which will check that the number of group members in the trigger is the same as the number of group members in the group

Edited by clydefrog

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  

×