I know we’ve had a thread about this a little but ago, but we never got a good solution, so I’ll try to clear things up as I’m having the same problem.
I have a map with func_door entities in it (entities are put in by the map creator in SDK) and I want them not to activate when they are touched.
This has not worked for me :
local EntitySTouch = _R.Entity.StartTouch
local EntityTouch = _R.Entity.Touch
return (self:GetClass() != “func_door” and EntitySTouch(self)) or true
return (self:GetClass() != “func_door” and EntityTouch(self)) or true
Here, I confirm it is a func_door, first getting my looking ent while looking at the world, then when looking at the func_door entity:
Does anyone have any ideas?