home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2001 November
/
Gamestar_34_2001-11_cd1.bin
/
PATCHE
/
colobotpatch17e.exe
/
english
/
script
/
tremot2a.txt
< prev
next >
Wrap
Text File
|
2001-09-13
|
591b
|
26 lines
extern void object::Remote( )
{
SendToPost(1, 20); // move(20);
SendToPost(2, 90); // turn(90);
SendToPost(1, 20); // move(20);
SendToPost(2, 90); // turn(90);
SendToPost(1, 10); // move(10);
SendToPost(2, 90); // turn(90);
SendToPost(1, 10); // move(10);
SendToPost(2,-90); // turn(-90);
SendToPost(1, 10); // move(10);
}
void object::SendToPost(float order, float param)
{
// send the order and the parameter
send("order", order, 100);
send("param", param, 100);
// wait for end of work
while ( testinfo("order", 100) )
{
wait(1);
}
}