| entity - any entity |
|
Returns the network id of a shared entity, or 0 if it is not shared. Every shared entity has an id that is the same for all players, while each player's entity handle is their own. Send the id in a message (in SharedMsgData) when you want other players to find the same entity with FindSharedEntity. A character you have just spawned on a client returns 0 until the host has registered it. 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: FindSharedEntity, SharedEntityOwner, SpawnSharedEntity, SendSharedMsg. |