Returns a table of all currently damaged objects.
Used in: VCMod Main addon.
Shared Entity Vehicle:VC_getDamagedParts()
1. Table A table of all damaged objects on this vehicle.
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)