Server Help

Bot Questions - Mervbot rotate

Maverick - Mon May 23, 2005 8:50 am
Post subject: Mervbot rotate
Simple, small question:

How can I make a bot rotate itself? I can't figure it out icon_confused.gif
It can't be done with tell(botEvents), maybe with me->move() method?
Anonymous - Mon May 23, 2005 11:40 am
Post subject:
me->d (0-39)
Underlord - Tue May 24, 2005 7:54 am
Post subject:
Code: Show/Hide

// put bot in ship
tell(makeShip(1));
tell(makeFollowing(false));
tell(makeFlying(true));

// change ship angle
me->d = 20;  // 0-40

// have bot send position packets (spawn.cpp)
case EVENT_PositionHook:  {

  tell(makeSendPosition(true));
}

Maverick - Tue May 24, 2005 2:27 pm
Post subject:
thanks to both icon_smile.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group