If altitude is set too hight, ArmA will crash.
- Legacy ID
- Unable To Duplicate
- Place a unit in the map (editor)
- Name it (i will use myself, "player")
- Start preview
- Write in console: [player,200000000000] call BIS_fnc_setHeight;
- Run it
The game will crash in a couple of seconds, an error about paging (memory) will pop up.
We expect function will limit itself to a maximum altitude if there is a risk to make program crash, this is of course a test, a "bug hunting", and will never be used in a real script (I hope), however is better to fix it.
I provided all infos required and in my hands, now it's your work to fix it (and decide how) ;)
Crash confirmed on Win7 64bits.
It is not directly linked to BIS_fnc_setHeight but to the setPos* commands.
On my computer crashed appears for player's altitude equals to 1000000000000 or 10000000000000.
Just before the CTD, arma3.exe uses all the available memory (4GB).