08-10-2016, 10:34 PM
(08-09-2016, 11:53 AM)krakers Wrote: Maybe you can help me - i don't have any idea what to do:Use radarall instead of radar, then filter it to find only objects that are not in dustbin.
When wasps have stolen all resources, they make a big crowd near "dustbin" point - they all want to grab resources which are laying there just ti drop it again. I don't know what to do with that. I tried to make object "Cleaner" (it's in code) which will destroy resources in dustbin, but it doesn't help much.
I know the solution is to throw resources to lava, but it would work only on maps with it...
Code:
object objs [] = radarall(list);
object o = null;
for (int i = 0; i < sizeof(objs); i++){
if(distance(dustbin_position, objs[i].position) > 25){
o = objs[i];
break;
}
}