OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: blob99 on 28 Oct 2009, 01:00:26
-
hi
i'm having a problem with making a trigger that activates when a specific unit is discovered by specific unit. ie: "a (blufor) is seen by b (opfor)" activates the trigger, but "a (blufor) is seen by c (opfor)" doesnt.
is there anyway to do this, any command (i didnt find any) or whatever?
thanks in advance
-
I kno u can group a trigger to a unit, so only that unit (or group) is detected. Maybe the 'knowsabout' command can prove useful here. Not sure if it works in ArmA tho.
Hope this helps a little
Gruntage
-
trigger
Condition : spotted
on activation : blah blah blah
script
@ a knowsabout b > 2
spotted=true
exit
;the number starts from 0 to 4
;if 0,then a knows nothing about b
;1 means a only consider b as unknown
;2 means a knows b is an unknown target
;3 and 4 means b is detected as an enemy by a
triggercondition : a knowsabout b > 2
on act : spotted=true