BobbyBonsaimind wrote:Why port it? See if you can expose it through the API.
Huh. That is a very good point. I hadn't thought of doing that because:
* I don't understand the engine well and
* I'd have to wait for the next release for it to work after doing that
In the long run though, that would be a much better option. With it exposed to the API, any changes in the engine's function would automatically update how the Lua function works as well. It'll take some time, but I'll try to expose getGroundLevelAtPoint() to the Lua API. Thank you for the advice!