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: Trigger condition based on height?  (Read 721 times)

0 Members and 1 Guest are viewing this topic.

KingBuffalo

  • Guest
Trigger condition based on height?
« on: 24 Dec 2005, 19:02:47 »
I have an object (flag) that is to be captured.  The capture is based on a trigger (i.e. east present), but I don't want east to be able to capture the flag by hovering over the flag in a helo.  

Can I place something in the trigger that checks for the height of east when they are taking the flag so that it will not activate if they are greater than 1 or 2 meters above the ground?  Thanks.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Trigger condition based on height?
« Reply #1 on: 24 Dec 2005, 19:19:39 »
In the condition field of the trigger put:

this and ({getPos _x select 2 < 2} count thislist > 0)

Or some such.  
« Last Edit: 24 Dec 2005, 19:24:44 by THobson »

marcus3

  • Guest
Re:Trigger condition based on height?
« Reply #2 on: 24 Dec 2005, 20:36:18 »
i think it would be easyer to add the action 'take flag' to the flag pole  ;)

KingBuffalo

  • Guest
Re:Trigger condition based on height?
« Reply #3 on: 24 Dec 2005, 21:22:19 »
thanks THobson, it appears to do the trick.