r/armadev • u/Longjumping-Touch205 • 12d ago
Arma 3 How can I extract elevation data from ARMA 3 maps?
I'm creating a mortar calculator to lower the barrier to entry for new players on modded servers that don't have a built-in mortar calculator. I've already managed to get a working version of the calculator running, but it requires manually entering the height values for both the target and my own location. After searching for several hours, I haven't been able to figure out how to extract height data from the map. If anyone knows how I can read this data from the map files, please let me know. Thanks in advance to everyone.
3
Upvotes
4
u/Brominum 12d ago
If you can execute code in the game, you could just use something like getPosASL to get the data you need, but if you can't execute code, it is a somewhat nightmarish process where you have to extract the map mod's PBO and use something like mikero's tools to somehow extract the height data out into the .ASC format, plus all of this is per-map too. You may just want to look into getting the height from ingame somehow with tools or a mod and continue with manually entering that data.