From Bohemia Interactive Community
Revision as of 17:20, 2 August 2006 by Hoz (talk | contribs) (moved notes)
Jump to navigation Jump to search



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"}

Bottom Section