Thank you! That's exactly what i need
@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
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