Ok I want to check every ally’s position and see if it matches a number
So far, I am using
while True:
ff = [t for t in hero.findFriends()]
if ff.x > integer:
run smth
Why isn’t it working? Thanks.
Ok I want to check every ally’s position and see if it matches a number
So far, I am using
while True:
ff = [t for t in hero.findFriends()]
if ff.x > integer:
run smth
Why isn’t it working? Thanks.
No. An exact point is different than a location. One tracks a point at a time, while the other continues to track
Do this:
while True:
friends = hero.findFriends()
for t, friend in enumerate(friends): # enumerate through friends with the index 't'
if friend.pos.x == integer: # Note that "equals" is the "==" symbol
run smth
P. S. Welcome to the forums!!!
Thanks for your help!
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.