home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2001 November
/
Gamestar_34_2001-11_cd1.bin
/
DEMA
/
colobotdemoe.exe
/
script
/
tprot1.txt
< prev
next >
Wrap
Text File
|
2001-07-23
|
343b
|
25 lines
extern void object::Solution( )
{
object item;
float dir, dist;
while ( true )
{
do
{
item = radar(AlienAnt, 0, 360, 0, 100);
}
while ( item == null );
dir = direction(item.position);
turn(dir);
dist = distance(item.position, position);
if ( dist < 40 )
{
fire(0.2);
wait(2);
}
}
}