Objectify Find #2741
Denneisk
started this conversation in
Suggestions
Objectify Find
#2741
Replies: 3 comments 3 replies
-
The worst thing about the find library is the quota. A new system having dynamic op counts based on the amount of filters would be great. Ideally as I sort of joked on discord, you'd just be able to do the filtering yourself with lambdas, but we don't have them yet. local PropsInSphere = allEntities()
:filter(E => E:pos():distance(Point) < 500)
:filter(E:type() == "prop_physics") So I guess if this is done without lambdas, this would be my ideal: local PropsInSphere = findAllEntities() # Returns a `findquery` type
:inListOfEntities(Array)
:inSphere(Pos, Radius)
:notInSphere(Pos, Radius)
:withClass(String)
:withoutClass(String)
:withOwner(Entity)
:withoutOwner(Entity)
:query() # returns array of results. should store the query object to run this repeatedly. Basically for the naming scheme:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
YES PLEASE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have a
Find
object that works like effects, where you set its fields before triggering an operation. This would allowBeta Was this translation helpful? Give feedback.
All reactions