I just realized my trigger cant find any func_physbox?

Dear Facepunch,

I just realized the func_physbox is cannot be detected in LUA?
My Brush Trigger which needed month to fix it and make it work with no Guide with nothing about brushes. Just with People who are trying to make one but never finished it. Also my trigger is detecting in a sphere. I dont care about the ents.FindinSpehere function I want to create a sphere and detect entities on the trigger sphere. I cant do anything if it cannot detect func_physbox. I added OnStartTouch and OnEndTouch support and filtername support ( to detect the filter entity and get what we are going to filter one thing or two example: classname or tragetname or both ).

Anybody has anyidea how to find func_physbox by a brush trigger. I hate Anim it can cause so much problem.
Also if self:PhysicsInitSphere( tonumber(self.triggerradius) ) using this Function sometimes I get the crazy physics problem and Combine DropShip’s attached stuff that transport can get stuck.

Found that problem on ep2_outland_01

Sorry for bad English :frowning:

It’s a problem on your side, as usual.



Entity [33][func_physbox]	StartTouch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	Touch
Entity [33][func_physbox]	EndTouch




ENT.Type = "brush"

function ENT:Initialize()
end

function ENT:StartTouch( ent )
	print(ent, "StartTouch")
end

function ENT:EndTouch( ent )
	print(ent, "EndTouch")
end

function ENT:Touch( ent )
	print(ent, "Touch")
end

function ENT:PassesTriggerFilters(entity)
	return true
end

function ENT:KeyValue(key, value)
	print( "[KeyValue] " .. self.ClassName .. " #" .. self:EntIndex() .. ": " .. key .. " - " .. value )
end

function ENT:Think()
end

function ENT:OnRemove()
end


http://i.imgur.com/p7nhpnB.png

Have u tested episode 2? or just created ur map?
Also this is created on hammer not VIA added in Lua.
Really not same issue what I am talking about.
ep2_outland_01 plug problem. Not attach.
Even if I try create my brush trigger. Nothing.
My test on map what I told you. Not about your map is the issue.
Touching player
trigger_plug_connect_fix entity filtername plug_filter_1
trigger_plug_connect_fix filtername plug_filter_1
trigger_plug_connect_fix filterclass
trigger_plug_connect_fix filteing true

It cannot find the func_physbox if it finds it. Somehow players told me need to spam E.

I love how you never ever explain properly what the problem is. You ALWAYS omit some details crucial to what you are trying to say.

Here’s your temporary solution:



lua_run ents.GetMapCreatedEntity(2257):SetCollisionGroup(2)

I will fix it in GMod for Dev branch.