HUD
Functions

Vehicle: get Damaged Parts

Returns a table of all currently damaged objects.

Used in: VCMod Main addon.

Shared Entity Vehicle:VC_getDamagedParts()

Returns

1. Table A table of all damaged objects on this vehicle.

Example

concommand.Add("vehicle_getdamagedparts", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		print("Vehicle you are currently looking at has: "..table.Count(ent:VC_getDamagedParts()).." damaged objects.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:38