FindSharedEntity ( network_id )

Parameters

network_id - network id of a shared entity, from SharedEntityID

Description

Returns your entity for a network id, or 0 if there is none.

Each player has their own handle for the same shared entity. FindSharedEntity turns the network id another player sent you into the entity in your world, so a message such as "open door 42" can reach the right door.

Returns 0 once the entity has been removed, and with no session.

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: SharedEntityID, SharedEntityOwner, SharedMsgData, SharedMsgEntity.

Index