Forum Jump :

Author Message


Posts: 27
Rank:


Level: Member

Country: nl
Location: Warzone
Occupation:
Age:
In-game name: Dutchy_Appie

 
#1 Posted at 2016-03-15 15:32        
     
Hi all,

For a mission I have 2 soldiers (s1 & s2) who must sneak to a location.
I have an enemy patrol with 4 units (pat1 - pat4), grouped as Patrol1.

Now want to make a trigger to activate a QRF as soon as any of the patrol members has a 'knowsAbout' value > 3 on s1 and/or s2.

So I came up with this trigger condition:
(pat1 knowsAbout S1 > 3 or pat1 knowsAbout S2 > 3) forEach units group Patrol1;

Not working, some boolean error.

2 Questions:
1. How can I mak this trigger work the right way?
2. Since I use 'or' (s1 OR s2), I'm not sure if it will work the way I want. What happens if a patrol member 'knowsAbout' both s1 and s2? Will the trigger still fire?

Can anyone help me with this please?

Cheers!


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 20
In-game name: Wak

 
#2 Posted at 2016-03-15 15:41        
     
You should take another look at forEach and knowsAbout again.

If S1 and S2 are grouped, this should be enough:
Patrol1 knowsAbout (group S1) > 3

If not, you could use this:
Patrol1 knowsAbout S1 > 3 || Patrol1 knowsAbout S2 > 3

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Advertisement


Author Message


Posts: 27
Rank:


Level: Member

Country: nl
Location: Warzone
Occupation:
Age:
In-game name: Dutchy_Appie

 
#3 Posted at 2016-03-15 18:06        
     
1st suggestion failed (Error message: Condition knowsabout: type array expected Object, Side, Group). s1 and s2 are grouped.

2nd is the solution. Works great.

Thanks a lot for your quick help!! Appreciate it!! *THUMBS UP*