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?
**[Util.TraceLine
http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Util.TraceLine)**
[lua]
tracedata.filter = {
/* Entities here */
}
[/lua]
[editline]05:13AM[/editline]
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
table.insert(tracedata.filter,v)
end[/lua]
Thanks you