Home   Help Search Login Register  

Author Topic: Use a trigger only in a certain area?  (Read 2200 times)

0 Members and 1 Guest are viewing this topic.

Offline stephen271276

  • Members
  • *
Use a trigger only in a certain area?
« on: 17 Sep 2009, 17:05:17 »
is it possible to make a trigger that is only usable in a certain area? ie a small area of town where a firefight is taking place with a radius of say 150... but when you move out of that radius the option to use the trigger via radio disappears?

Offline celoush

  • Members
  • *
  • Lazy czech mission designer
    • My czech website about mission design
Re: Use a trigger only in a certain area?
« Reply #1 on: 17 Sep 2009, 17:27:17 »
Code: [Select]
_trg=createTrigger["EmptyDetector",getPos xxx];
_trg setTriggerArea[150,150,0,false];
_trg setTriggerActivation["CIV","PRESENT",true];
_trg setTriggerStatements["this", "1 setRadioMsg ""Call Radio"""];

_trg2=createTrigger["EmptyDetector",getPos xxx];
_trg2 setTriggerArea[150,150,0,false];
_trg2 setTriggerActivation["CIV","NOT PRESENT",true];
_trg2 setTriggerStatements["this", "1 setRadioMsg null"];

Offline stephen271276

  • Members
  • *
Re: Use a trigger only in a certain area?
« Reply #2 on: 21 Sep 2009, 13:16:26 »
Where would I put that??? in the init.sqf?