OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: st3a1th on 07 Feb 2009, 19:06:25
-
Hi
I am not very cleaver so have no ideal about scripting. I am trying to find a script that will delete dead vehicles does anyone know of one or able to make one for me
Any help would be greatful
Thanks
-
Did you try (http://www.ofpec.com/ed_depot/index.php?action=details&id=419&game=ArmA)the Editors Depot?
-
Yes I have that one. But It dont delete the vehicle
-
You could change it here:
if(NOT(_x isKindOf "MAN")) then{
_vehicle = _x;
deleteVehicle _x;
But I think if you delete a vehicle while there is a unit in it. It will crash arma. So be sure to change that.
-
Haha, this is OFP not ArmA now Hoz.
You could simply does as Hoz said however:
if(NOT(_x isKindOf "MAN")) then{
_vehicle = _x;
{deletevehicle _x} foreach crew _x;
deleteVehicle _x;
-
oh, I didn't realize I was in the OFP board. Thanks Rommel
-
That seems to work but it delete's alive vehicles too, is there away to make it so it only delete's it if it's destroyed ?