Page 1 of 1

Finding "any" entity on a position

Posted: Wed Mar 16, 2016 12:35 am
by lyravega
Finding "any entity" on a specific position is rather hard. Either need a new function, something like "find_any_entity(position)" or need to overload "find_entity(entityName, position)" to also work without passing any entity names. Currently, need to use more complex functions, like "find_entities(...)" or "find_entities_filtered(...)", and both requires an area. In order to check a 1x1 "dot", an easier solution would be better & preferred.

Re: Finding "any" entity on a position

Posted: Wed Mar 16, 2016 4:59 pm
by Rseding91
I can make the entity part of "find_entity" optional - would that work for what you're after?

Re: Finding "any" entity on a position

Posted: Thu Mar 17, 2016 3:01 am
by lyravega
Yup yup, avoiding area whenever possible would definitely be much more useful!

Re: Finding "any" entity on a position

Posted: Thu Mar 17, 2016 11:49 am
by prg
You can just use find_entities({position, position}) for now.