OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
check the comref (http://www.ofpec.com/editors/comref.php?letter=G#getPos).
_height = getpos object_name select 2
-
Bedges is right.
? getpos object_name select 2 >= 150 : loonname moveindriver parachutename