Forum Jump :

Author Message


Posts: 31
Rank:


Level: Member

Country: fi
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2013-11-22 15:07        
     
Hi once again!

I have driven myself into a dead end once again. I am trying to get a trigger to activate when player has seen/sees/knows about two groups OR two particular vehicles. I have tried knowsAbout command with amazingly different versions (probably wrongly still :D ) and tried to get "x detected by x" and "detected by x" working with some conditions, and without conditions.
Conditions that I have used are (said shortly and which I remember):
(Armor in thislist) && (Mechanized in thislist);
(Tusk1 in thislist) && (Striker1 in thislist); (with four different OR factors changing from Tusk1 to Tusk4)
(Different values < different OPFOR options knowsAbout different BLUFOR options) && (Different values < different OPFOR options knowsAbout different BLUFOR options)

Enemy:
Armor is a name of a group
- Tusk1, Tusk2, Tusk3, Tusk4 is a name of a unit
Mechanized is a name of a group
- Striker1 is a name of a unit
Friendly:
GroupOne is a name of a group
- NO SPECIFIC UNIT NAMES
Support is a name of a group
- NO SPECIFIC UNIT NAMES

I have read about the knowsAbout command in many sections but it still could be ver possible that I just can't get my head around it. (I have searched MANY places for this).

About the mission:
My troops (Russian OPFOR) have retreated to Kamenka. The four Tusk M1A1 are coming from east by the road and the Mechanized (Striker1) from west by the road. When the OPFOR (My troops) sees/knows about the two enemy groups (Or one unit from both groups) they should get a new task telling them to retreat towards north for Evac. And so on..

Thank you all in advance!


Author Message


Posts: 1484
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-11-22 21:34        
     
I'm not sure this will help but here goes

this should work if any vehicle in group Armor is spotted in the trigger area, the player can be outside the area.


Blufor Present
cond
Armorgrp = false; {if (unit knowsabout _x >1 and _x in thislist ) then {Armorgrp = true;};} forEach [tusk1,tusk2,tusk3,tusk4]; Armorgrp;
on act
Hint "Armor Vehicles Spotted"

cheking if any unit in GroupOne is spotted in the trigger
Blufor present
cond
Grp1 = false; {if (unit knowsabout _x >1 and _x in thislist ) then {Grp1 = true;};} forEach units GroupOne; Grp1;
On Act
Hint "Units From GroupOne Spotted"


In a third trigger you could check both triggers

0,0 size
cond
Armorgrp and Grp1
on act
Hint  "Both Groups Spotted"


Advertisement


Author Message


Posts: 31
Rank:


Level: Member

Country: fi
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2013-11-24 12:09        
     
For some reason it doesn't seem to work either, even it is sensible. Any other ideas or a work around?

Added 20 hours 36 minutes later:

Solved. I made a small sacrifice on the group. I took the Striker out of the Mechanized team so I can make a grouped trigger for it with "Detected by Opfor". Armor side was easy enough as it is just Tusks so grouped "Any group member" and "Detected by Opfor". Third to check if those triggers have been activated. Thanks for help F2kSel :)

This post was edited by TuoppiR (2013-11-25 09:25, ago)