Page MenuHomeFeedback Tracker

Cannot setPos or deleteVehicle on dead units which were in a vehicle when they died.
New, NormalPublic

Description

I am trying to write a clean up script, but I ran into an issue: I cannot {deleteVehicle _unit;} on units that have died in a vehicle.
I tried {_unit setpos (getpos _unit);}, but this did not work as well.

This never happens when the units are killed via script. And only sometimes happens when they are shot.

Details

Severity
Minor
Resolution
Open
Reproducibility
Sometimes
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  1. Shoot a unit that is in a vehicle. (You MUST shoot him, otherwise this bug will not work)
  2. Kill the unit by SHOOTING him.
  3. Try to delete the unit. {deleteVehicle _x}count allDeadMen (Seems to work ~75% of the time)

Here is the reproduction mission : http://arma3.faith/issue1.Tanoa.pbo
Here is a video of the reproduction : https://www.youtube.com/watch?v=TJNRNCYHcew

Additional Information

Remember, this only works if you shoot the unit, so don't try to {_unit setDamage 1}.
Remember, this only worked ~ 75 % of the time, on the reproduction mission, shooting all the units (24) will give you a positive end result 100% of the time.

Event Timeline

nigel created this task.Feb 26 2017, 4:28 PM

The ticket is still actual. Eventually the amount of dead bodies (the size of allDead array) becomes bigger and bigger and restart is only way to purge it.