Sets all damaged objects silently, no effects. More efficient than setting one by one, synced to clients.
Used in: VCMod Main addon.
Server Entity Vehicle:VC_setDamagedParts(Table tbl)
1. Table tbl; Table
The table of all damaged objects.
concommand.Add("vehicle_setdamagedobjects", function()
local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
if IsValid(ent) then
ent:VC_setDamagedParts(ent:VC_getDamagedParts())
print("Vehicle you are currently looking at damage objects have been reset to itself, useless, really..")
else
print("Invalid entity.")
end
end)