My scripts:
[] spawn {
while{true}do{
{if((!alive _x) && (_x != player)) then{deleteVehicle _X}}forEach allDeadMen;
sleep 30;};
};
When I entered the game, the dead AI bodies were indeed deleted within 30 seconds, but the dead player bodies were also deleted. I'm thinking that maybe when the player dies (or when they respawn), their body is no longer considered as "player", so it is being deleted along with allDeadMen in the _x ?