findNearestFriends


#1

There are no glasses which give me hero:findNearestFriends(). I have looked in all of them but neither of them do for the level Interception in the desert. I use Lua


#2

I think what you’re looking for is:

friend = hero.findNearest(hero.findFriends())

Try that.


#3

Try local friend=hero.findNearest(hero.findFriends())


#5

He is in lua? Then you have to format the code in LUA! :man_shrugging: :smiley_cat:
So, he might need to show us his code, for a level, or something like that


#6

I suppose Chaboi’s version will do. The code does not necessarily depend on its surrounding code. Anyway thanks guys


#7

I guess so(20 characters)