Get map z / elevation at specific coordinates?

Get map z / elevation at specific coordinates?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Pithikos
Posts: 146
Joined: 26 Dec 2008, 14:26

Get map z / elevation at specific coordinates?

Post by Pithikos »

Is there a function to get the z elevation at specific coordinates x and y? A searched a bit and didn't find anything, neither in Synced, Unsynced or Constants.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Get map z / elevation at specific coordinates?

Post by Beherith »

Spring.GetGroundHeight

( number x, number z ) -> number y
User avatar
Pithikos
Posts: 146
Joined: 26 Dec 2008, 14:26

Re: Get map z / elevation at specific coordinates?

Post by Pithikos »

Beherith wrote:Spring.GetGroundHeight

( number x, number z ) -> number y
Thanks! I was searching in the map sections :regret:
Post Reply

Return to “Lua Scripts”