deleteVehicle: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(deleting MP clients) |
||
Line 27: | Line 27: | ||
| [[createUnit]], [[createUnit array]], [[createVehicle array]], [[createVehicleLocal]], [[createVehicle]] |= See also | | [[createUnit]], [[createUnit array]], [[createVehicle array]], [[createVehicleLocal]], [[createVehicle]] |= See also | ||
|mp= A deleted player unit will stay visible until that player has disconnected. |= | |||
}} | }} |
Revision as of 22:49, 28 November 2008
Description
- Description:
- Delete an object. Note that only units inserted in the mission editor and units created during the game's progress can be deleted by this command. Island objects and player units can't be removed.
- Multiplayer:
- A deleted player unit will stay visible until that player has disconnected.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
deleteVehicle _house1
Attention Deleting a vehicle, which is still being accessed by a running script, can result in a CTD.
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on August 3, 2006 - 14:30
- hardrock
- Notes from before the conversion:
If you run deleteVehicle for every playable soldier, the AI units will be removed.
deleteVehicle unit1
will result in some very strange, and unwelcome, things happening. A safer way to delete unit1 if it is, or might be, inside a vehicle is:unassignVehicle unit1
This is because you cannot call deleteVehicle on a unit (soldier) who's currently inside a Vehicle. The line below works just fine for units that have been deleted.
unit1 setPos [0,0,0]
deleteVehicle unit1if (alive unit1) then {hint"He is alive"} else {hint"Oh no he's not"}
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.34
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Unit Control
- Command Group: Object Manipulation