OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: blob99 on 28 Oct 2009, 01:00:26

Title: how to specify activation of a trigger?
Post 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
Title: Re: how to specify activation of a trigger?
Post by: Gruntage on 28 Oct 2009, 10:55:37
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
Title: Re: how to specify activation of a trigger?
Post by: haroon1992 on 28 Oct 2009, 11:22:06
trigger
Code: [Select]
Condition :    spotted
on activation  : blah blah blah


script

Code: [Select]
@ 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
trigger
Code: [Select]
condition :  a knowsabout b > 2
on act : spotted=true