SharedButtonDown ( player,name$ )

Parameters

player - a player ID, or 0 with no session

name$ - a button named with DefineSharedButton

Description

Returns True while a player holds a button.

On a server room's server it reads that player's button, a bot's included. On any other copy it reads this copy's own button for SharedLocalPlayer() - 0 with no session - and False for everyone else.

Use SharedButtonHit for things that happen once per press, such as a jump.

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: SharedButtonHit, DefineSharedButton, SharedStickX, SetSharedBotButton.

Index