HUD
Functions

Vehicle: set Damaged Parts

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)

Arguments

1. Table tbl; Table
The table of all damaged objects.

Example

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)
Page modified:
...2018-11-02 09:24:41