SetSharedButton name$,down

Parameters

name$ - a button named with DefineSharedButton

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

Description

Holds or releases your own player's button from your own input code.

A press counts the moment you hold the button, so holding and releasing it in the same frame still reaches the server's SharedButtonHit. The button is also held while any of its keys is down.

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: DefineSharedButton, SharedButtonHit, SharedButtonDown, SetSharedStick.

Index