Browsing Wiremod's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2022-06-07. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

find.byClass with an owner filter

🔌 WiremodUpdated 2 days ago•0 views
find.byClass("acf_gun", function(ent) return ent:getOwner() == owner() end) - byClass takes a filter function as second arg.

How to iterate entities of a class filtered by owner

find.byClass("acf_gun", function(ent) return ent:getOwner() == owner() end) - byClass takes a filter function as second arg.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.