| player - player id |
|
Returns a player's character entity, or 0 if they have none. A player's character is the entity they made with SpawnSharedPlayer or SharePlayerEntity. In your world, other players' characters are replicas, so you can put a name tag over them, point a camera at them or check what is near them. Returns 0 while a player has no character yet, and for an id that is not in the room. In a server room every entity is the server's, and a player's is the one the server gave them with SetSharedPlayerEntity. 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: SpawnSharedPlayer, SharePlayerEntity, SharedPlayerID, SharedEntityOwner, SetSharedPlayerEntity. |