|
player - a bot's player ID, from AddSharedBot name$ - a stick named with DefineSharedStick x# - from -1 (left) to 1 (right) y# - from -1 (down) to 1 (up) |
|
Moves a bot's stick, on a server room's server. This is the bot's brain at work: decide where it should go, set its stick, and your ordinary movement code, which reads SharedStickX and SharedStickY, moves its entity. The stick keeps the value until you set it again; a value outside the unit circle is brought back to it. Setting a stick of a player who isn't one of this server's bots is a runtime error. For the full story - server rooms, hosting, sharing and host migration - see the Shared World guide and its complete Shared_World_Playground.bb sample. See also: SetSharedBotButton, AddSharedBot, SharedStickX, DefineSharedStick. |