Need a robot to detect barrel using getobjectsinrange and make it go round about the barrel without touching. Can someone please explain in detail how to use the code? I am new to it.
Just to clarify, getObjectInRange returns a list of actors in the given radius. You need to import java.util.List and think about how to get a specific actor out of that list.