How do I check if a player touches/is inside/hits specific world brush entities?

Was thinking about how I would begin coding interactions between specific world entities (i.e. func_button, func_breakable, trigger_once).

I’m still fairly new to Gmod Lua myself, and was wondering if you guys could give me a little bit of how I would go about doing this.

Say, would it be possible if I made a player with certain attributes fall through a func_breakable than physically touching it? Or not triggering any triggers in the map?

Extend Player class (using metatable), to create you own “attribute”, it is actually a function/metamethod for each player.
Now the main part:

NOTE: Above gist is incomplete; I’ll update it later to complete solution.
You could also try this:


Thanks for the guidance, I got somewhere to start from now.