OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: KingBuffalo on 24 Dec 2005, 19:02:47

Title: Trigger condition based on height?
Post by: KingBuffalo 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.
Title: Re:Trigger condition based on height?
Post by: THobson 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.  
Title: Re:Trigger condition based on height?
Post by: marcus3 on 24 Dec 2005, 20:36:18
i think it would be easyer to add the action 'take flag' to the flag pole  ;)
Title: Re:Trigger condition based on height?
Post by: KingBuffalo on 24 Dec 2005, 21:22:19
thanks THobson, it appears to do the trick.