OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OFPfreak on 12 Aug 2005, 06:59:18

Title: Altitude detection?
Post by: OFPfreak on 12 Aug 2005, 06:59:18
Simple and short question: How do I detect altitude of an object from the ground? This way I can trigger a parachute to open just like in ECP, but for a different purpose.
Title: Re:Altitude detection?
Post by: bedges on 12 Aug 2005, 07:09:37
check the comref (http://www.ofpec.com/editors/comref.php?letter=G#getPos).

Code: [Select]
_height = getpos object_name select 2
Title: Re:Altitude detection?
Post by: Dane on 12 Aug 2005, 16:29:19
Bedges is right.
? getpos object_name select 2 >= 150 : loonname moveindriver parachutename