Add filter to a trace.

I need help making a trace ignore all specific objects on the map (lets say npcs, players) but i cant seem to manage making it work. How would i got about doing that?


tracedata.filter = {
/* Entities here */


Also, it has to be entity specific. So if you wanted to block a specific type of entities, you’d have to do something like

[lua] for k, v in pairs(ents.FindByClass(“class”))do

Thanks you :slight_smile: