OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Pointman on 03 Feb 2003, 05:13:37

Title: Altitude over the sea?
Post by: Pointman on 03 Feb 2003, 05:13:37
I noticed that GetPos returns the altitude over GROUND. is there a way to get the altitude over the SEA instead? I searched but couldn't really find anything.
Title: Re:Altitude over the sea?
Post by: Sui on 04 Feb 2003, 00:05:40
One method I know of is to setpos a trigger to the position you want altitude AMSL, and find the differences in Z value.

Triggers are always at sea level, so the difference in height between a trigger an object at the same x,y position is your elevation ;)
Title: Re:Altitude over the sea?
Post by: Pointman on 04 Feb 2003, 01:07:05
Awesome Sui, thanks. (you don't even have to setpos for every alt check though, the Z difference will still be the same)