All pastes #398713 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-17 13:52 UTC
rendered paste body
function TOOL:LeftClick(trace)
	Msg("Is valid")
	if trace.Entity && trace.Entity:IsPlayer() then return false end
	Msg("Yes")
	--if ( util.IsValidPhysicsObject( trace.Entity, trace.PhysicsBone )==false ) then return false end
	if (!CLIENT) then
	Msg("Not client")
	local entl=duplicator.GetEnts(trace.Entity)
		for i=1,table.getn(entl) do
			entl[i]:SetNetworkedBool("iv01",false)
			numpad.OnUp(self:GetOwner(), self:GetClientNumber("key"), "Invisible_toggle", entl[i])
		end
	end
	Msg("Returning true")
	return true
end