colobot-data/ai/tremova2.txt

21 lines
357 B
Plaintext
Raw Normal View History

extern void object::Solution( )
{
for ( int i=0 ; i<3 ; i=i+1 )
{
object item;
point dest;
item = radar(Titanium, 0, 360, 0, 1000, -1);
if ( item == null ) return;
goto(item.position);
grab(); // grab the titanium cube
dest.x = 10;
dest.y = -60-5*i;
goto(dest); // go to the plateform
drop(); // drop the titanium cube
}
}