Home   Help Search Login Register  

Author Topic: Trigger condition based on height?  (Read 615 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.