Reasoning: In engine filtering is way faster than in sqf land.
Doing for multiple commands in one go may reduce the average effort hopefully.
Filters:
- alive
- simulatedEnabled
- not isObjectHidden
- isKindOf
- not isKindOf
- side/friend check
- includeCrew
- not INCAPACITATED
- exclude caller (if object given instead of position) //NTH
Relevant sqf commands: (from high to low prio)
https://community.bistudio.com/wiki/nearEntities [most[
https://community.bistudio.com/wiki/nearTargets [all]
https://community.bistudio.com/wiki/vehicles [all]
https://community.bistudio.com/wiki/targets [some]
https://community.bistudio.com/wiki/targetsQuery [some]
https://community.bistudio.com/wiki/entities [most]
https://community.bistudio.com/wiki/units [all]
https://community.bistudio.com/wiki/allUnits [all]
https://community.bistudio.com/wiki/allGroups [most]
https://community.bistudio.com/wiki/groups [most]
https://community.bistudio.com/wiki/allDeadMen [most]
https://community.bistudio.com/wiki/allDead [most]
https://community.bistudio.com/wiki/nearestObjects [some]
https://community.bistudio.com/wiki/nearObjects [most]
https://community.bistudio.com/wiki/allSimpleObjects [some]
https://community.bistudio.com/wiki/nearSupplies [most]