Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Use a trigger only in a certain area?  (Read 3104 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?