matthew2112 Posted April 16, 2020 Share Posted April 16, 2020 private String[] actions = {"Climb", "Cross", "Cross", "Jump", "Jump", "Cross","Cross","Jump","Jump","Jump","Jump","Jump","Jump"}; private String[] names = {"Rough wall", "Tightrope", "Hand holds", "Gap", "Gap", "Tightrope","Tightrope","Gap","Ledge","Ledge","Ledge","Ledge","Edge"}; i am doing a .closest interaction with these strings and it works fine for all but one obstacle. The 3rd to last name which is Ledge. The script attempts to go backwards around the course instead of going onto the 2nd to last name which is also ledge which is slightly farther away than the 3rd one. It successfully completes the course sometimes because the 3rd to last Ledge has two IDs on it and when it interacts with the furthest east id the script is successful. However, i do not know how to interact ids into strings or solve this problem. Any help would be greatly appreciated. Thanks, Matt Quote Link to comment Share on other sites More sharing options...
Chris Posted April 16, 2020 Share Posted April 16, 2020 use a filter and add object position Quote Link to comment Share on other sites More sharing options...