-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
self.client.query_paths always return 0 #195
Comments
Can you post a code example please? How are you attempting to use it? |
When I'm using the function self.client.query_paths, I was thinking to get the path from my units to my set point, for example "self.enemy_start_location[0]". |
I found my code and I will show you below:
The result is: Thank you so much! |
I haven't used it in a long time but there may be cases where the target_position is something that ground units can't reach, in which case it returns 0. Can you try using the following, where you use the attacking_units = self.units.filter(lambda unit: unit.type_id in avenager_units_types)
pathing_responses = await self.client.query_pathings(
[[unit, target_position] for unit in attacking_units]
)
print("pathing_responses:", pathing_responses) I believe the second parameter always has to be a position, so keep it that way. Lines 235 to 236 in f175e81
|
Thank you for your reply! |
No description provided.
The text was updated successfully, but these errors were encountered: