Attached is a screenshot showing a height at cursor of 92, yet a gadget prints the minimum height from Spring.GetGroundExtremes as 108. The height is 92 after a BA commander explosion.
here's the gadget used to test:
Code: Select all
function gadget:GetInfo()
return {
name = "Loony: Heightmap Test",
desc = "heightmap test.",
author = "zoggop",
date = "January 2015",
license = "whatever",
layer = 10,
enabled = true
}
end
-- synced --------------------------------------------------------------------
if gadgetHandler:IsSyncedCode() then
function gadget:UnitCreated()
Spring.Echo(Spring.GetGroundExtremes())
end
end