Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MinePlanter
#3
Thank you! That's exactly what i need

Quote:extern void object::MinePlanter()
{
float angle = orientation;
float radius = 1.7;

point pos;
pos.x = position.x + radius * cos(angle);
pos.y = position.y + radius * sin(angle);


sniff();
produce(pos, orientation, Mine);
}

@edit.
That's pretty strange. I used "produce" command before "sniff" and when I runned this program while robot was standing in place, it was OK. When program finished I could even go thru the mine. The problem was when I runned program while robot was moving - then Mine was destroying robots immediately.
So i had to use "sniff" before "produce" - then robot needs to stop to sniff and it works fine


Messages In This Thread
MinePlanter - by krakers - 08-04-2016, 10:38 AM
RE: MinePlanter - by tomaszkax86 - 08-04-2016, 12:42 PM
RE: MinePlanter - by krakers - 08-06-2016, 09:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)