OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hartza on 04 Sep 2002, 15:33:25
-
HI!
In my mission there are 4 east patrols ( East1 ...East4 ) which are guarding the city area.
Players groups ( name= Strike ) mission is to rescue resistance leader kept in one of the houses in the city.
I like to make an trigger that alarms backup troops for these 4 east patrol, if they knows that players are there. With this trigger I could also set patrols bahavior to combat , etc.
I tried East1 KnowsAbout Strike command, but keep getting this same error: expected object etc...
How should I make this alarm thing ???
-
why not just place a trigger with conditon West detected by East (select it at the top) - that will do the same for u
-
unit knowsAbout target
Operand types:
unit: Object or Group
target: Object
Type of returned value:
Number
Description:
Check if (and how much) knows unit about target. If unit is vehicle, vehicle commander is considered.
Example:
soldierOne knowsAbout jeepOne
You can't use a group as the target, it has to be an object. So maybe use a forEach thing?
-
Cant you foreach as a condition. You have to use Count.
-
Crap !
Of course ... :-[
Messiah is right ...
sometimes answer is too obvious and you just try to think too difficulty ... ;D :P