Home   Help Search Login Register  

Author Topic: how to specify activation of a trigger?  (Read 1358 times)

0 Members and 1 Guest are viewing this topic.

Offline blob99

  • Members
  • *
how to specify activation of a trigger?
« 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

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: how to specify activation of a trigger?
« Reply #1 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
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Re: how to specify activation of a trigger?
« Reply #2 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
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(