get_sorted_zone_point()
- 1 Minute to read
get_sorted_zone_point()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
get_sorted_zone_point()
Retrieve the points sorted by order_zone_points
function.
Reference
Arguments
Arguments | Type | Default value | |
---|---|---|---|
pos_unit | POSITION_UNIT | POSITION_UNIT.PIXELS | Unit of measurement for the points (PIXELs or METERS). |
Return
Returns an array of two positions with the X coordinate and the Y coordinate.
Exceptions
RayaNavNoMapLoaded
RayaNavNotLocated
RayaNavZonesNotFound
RayaWrongArgument
RayaNavCurrentlyMapping
RayaNavUnkownError
See the complete list of navigation exceptions.
Usage Example
Code:
...
class RayaApplication(RayaApplicationBase):
async def setup(self):
self.nav = await self.enable_controller('navigation')
...
async def loop(self):
...
zone_sorted = await self.nav.get_sorted_zone_point(
pos_unit = POSITION_UNIT.PIXELS
)
self.log.info(zone_sorted)
...
Console output
[125.0, 59.0]
See the nav_all_unity_apartment, nav_get_info to check some valid uses.
Was this article helpful?