deleteVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|D]]
[[Category:Scripting Commands|DELETEVEHICLE]]
[[Category:Scripting Commands OFP 1.97|D]]
[[Category:Scripting Commands OFP 1.97|DELETEVEHICLE]]
[[Category:Scripting Commands OFP 1.46|D]]
[[Category:Scripting Commands OFP 1.46|DELETEVEHICLE]]
[[Category:Scripting Commands ArmA|D]]
[[Category:Scripting Commands ArmA|DELETEVEHICLE]]





Revision as of 12:44, 4 May 2006


deleteVehicle object


Operand types:

object: Object

Type of returned value:

Nothing

Compatibility:

Added in version 1.34

Description:

Delete any unit or vehicle.

Only vehicles inserted in editor or created during mission can be deleted.

Player unit cannot be deleted.


Example:

deleteVehicle tankOne


Comments:

Since this function will not delete a player unit, a useful multiplayer application is the removal of AI created by players leaving the game.

If you run deleteVehicle for every playable soldier, the AI units will be removed.