ENT:Touch being called twice


AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
util.AddNetworkString( "red_score" )
function ENT:Initialize()

	self:SetModel("models/props_phx/misc/soccerball.mdl")
	self:PhysicsInit(SOLID_VPHYSICS)
	self:SetMoveType(MOVETYPE_VPHYSICS)
	self:SetSolid(SOLID_VPHYSICS)
	self:SetModelScale( self:GetModelScale() * 5, 1 )
	self:SetGravity(10)	
	local d=99  
    local r=d/2 
	self:PhysicsInitSphere(r)

	local phys = self:GetPhysicsObject()
	phys:SetMass(5)
	phys:Wake()
	
end


function ENT:Touch(e)
	
	self:Remove()
	print("Hi")
end

“Hi” is being printed twice.

Updated the wiki page for you:

Thank you

Wouldn’t it be every tick?

Same thing really

A better representation of the text would be: It is called once per tick for each entity the object is in contact with… ie once for the world, once for the player, etc…

Well there is a pretty important difference between frames on the server and actual ticks.