Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't make the programm find 4 items
#3
(07-09-2017, 11:12 AM)radioactivity Wrote: The radar command has min parameter which will make it find closest ores that are at least min away. If I remember correctly it's just another parameter after regular range, so:



Code:
radar(TitaniumOre, 0, 360, range, 15)

This should make it so bot doesn't look for ores that are within 15 meters from it. Notice that it works as properly only if you radar while in spaceship. Do check radar in SatCom though, as I am not sure.

If you are a perfectionist, you can browse though list of all objects on map, save all Titanium Ores that are not on space ship (> 10m away) in array, pick the from the array the one that's closest. This level of pettiness shouldn't be necessary though
 Thank you, but I've already found the problem. Command radar has 'sens', which determines whether the closest objects will be found first or the fartherst.


Messages In This Thread
RE: Can't make the programm find 4 items - by Caroling - 07-09-2017, 11:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)