Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Deletes an object. Only units in the OME / RTE can be deleted by this command. Island objects and player units cannot be removed. Before deleting a unit that is inside a vehicle, the unit should be Eject first.

Deleting a unit does not automatically delete the group the unit belongs to, even if the unit is the last member of the group. The group has to be deleted manually using deleteGroup. Groups that are not deleted may degrade performance.

Syntax

Syntax:deleteVehicle object
Parameters:
  • object: Object - The object that needs to be deleted.
Return Value:Nothing

Examples

Examples:
deleteVehicle _house1

Additional Information

See also: createUnit, createVehicleLocal, createVehicle
Multiplayer:A deleted player unit stays visible, until that player gets disconnected.
Problems: 

Notes