colobot-data/ai/charge1.txt

14 lines
404 B
Plaintext
Raw Normal View History

2012-09-13 21:35:43 +00:00
extern void object::Recharge1()
{
point start; // variable for initial pos.
object item; // info. about power station
start = position; // store initial position
item = radar(PowerStation); // look for station
goto(item.position); // go to the power station
wait(5); // wait 5 seconds
goto(start); // go back to initial pos.
}