Well, how does one do? I have no ideas thus far.
Give more details what you’ve said makes no sense.
I want to call a function when “ent” collides with an object.
(This is how it is made, inside of a SWEP:PrimaryAttack function)
local ent = ents.Create( "prop_ragdoll" ) ent:SetPos( pos ) ent:SetAngles( self.Owner:EyeAngles() ) ent:SetModel( self.Owner:GetModel() ) ent:Spawn() ent:SetMoveCollide( MOVECOLLIDE_FLY_BOUNCE )
Sort of like the TF2 demoman’s grenade launcher, the grenade explodes on contact (i beleive, not an avid tf2 player).
This looks promising
[editline]1st October 2017[/editline]
I was going to say, “but its not a SENT or whatever and gpriohjirjojw3t”
and then i saw this http://wiki.garrysmod.com/page/Entity/AddCallback