How to find item in list when close distant or sth?

I want to know how to find each item in list by condition code ,help me pls ,Thank you for taking the time to read this article.

Hi @HenryHuy, can you give an example of what you want to do? I don’t understand what you mean by “close distant or sth”.

i have tower defense project, i want to find enemy in list when enemy move close to turret (nearesttower defense project, i want to find enemy in list when enemy move close to turret (take nearest enemy in list)

like that

You can use the for each item in list control block to iterate through and parse the list to find the location and calculate the distance between the enemy and turret.

1 Like


it work :slight_smile: