Jump to content
Sign in to follow this  
JohnBravo

Remove Dead vehicles

Recommended Posts

Hi

I have found out how to remove dead bodies no problem with that so i just wonder what about vehicles

I played my maps lots of dead bodies have removed not vehicles

I need script for removed vehicles

thanks

Share this post


Link to post
Share on other sites

Here is something that I use.

while {true} do
{
sleep (5 * 60); //sleep for 5 minutes
{
	if(!alive _x) then
	{
		deleteVehicle _x;
	};
} foreach allMissionObjects "LandVehicle";

{
	if(!alive _x) then
	{
		deleteVehicle _x;
	};
} foreach allMissionObjects "Air";
};

It will only remove dead vehicles and not heavily damaged vehicles though.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×