Closed Jermin closed 6 years ago
Sounds like an Arma bug that I can't fix.
Weapons can get lost, too, in which case I can't find it in the object searcher.
That's Arma, can't do anything about that.
Money is there, just underground. Any way we can reposition it to the RIP position when the player dies? Yes though. Definitely an Arma bug (As is randomly losing your rifle)
I have found the problem. For whatever reason, sometimes getPosATL
will give a negative height for corpses, and dropPlayerItems
tries to spawn stuff at corpse height, so things would spawn underground. I applied a lower boundary of 0 to the height of getPosATL
and it seems to have did the trick.
Sadly, I don't think I can prevent lost weapons.
The object searcher can find it. But we can't see it where it is marked.