deleteVehicle

From Bohemia Interactive Community
Revision as of 00:45, 2 August 2006 by Hardrock (talk | contribs)
Jump to navigation Jump to search

Template:Command

Notes

Bottom Section

Old Notes (temporary):

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 unit1 setPos [0,0,0] deleteVehicle unit1 The line below works just fine for units that have been deleted. if (alive unit1) then {hint"He is alive"} else {hint"Oh no he's not"}