SharedEventPlayer ( )

Parameters

None.

Description

Returns the player id the current event is about.

It describes the event taken by the last RecvSharedEvent that returned True, until the next call. For a join or a departure it is that player, for an entity event it is the owner, and for SHARED_EVENT_HOST_CHANGED it is the host now in charge.

Returns 0 when the event is not about a player, and when there is no current event.

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: RecvSharedEvent, SharedEventType, SharedPlayerName, SharedHostPlayer.

Index