Hello i just want to know how to make an unbreakable turret, for example: when the turret gets explodes, he will rebuild itself after 1 sec or something like that
addhook("objectdamage","objdmg")
function objdmg(oid)
	local t = object(oid,"type")
	if t == 8 or t == 11 or t == 12 then
		return 1
	end
end