SetSharedBotButton player,name$,down

Parameters

player - a bot's player ID, from AddSharedBot

name$ - a button named with DefineSharedButton

down - True to hold the button, False to let it go

Description

Holds or releases a bot's button, on a server room's server.

Holding a button that was up counts as one press for SharedButtonHit, as a person's press does. Release it again before the bot can press it once more.

Setting a button 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: SetSharedBotStick, SharedButtonHit, AddSharedBot, DefineSharedButton.

Index