SharedLocalPlayer ( )

Parameters

None.

Description

Returns your own player id, or 0 with no session.

Every player in the room has an id. Compare ids with yours to tell your own player from the others, or use SharedPlayerLocal. Ids stay the same when the host changes.

On a server room's server it is 0: the server has no player of its own.

For the full story - services, hosting, sharing and host migration - see the Shared World guide and its complete Shared_World_Playground.bb sample.


See also: SharedPlayerLocal, SharedPlayerID, SharedHostPlayer, SharedPlayerName.

Index