Skip to main content

Pool::atRemoteId

This function returns the entity object, if valid from the server-side generated entity.id. This is important to know, because the client-side entity.id may be different to the entity.id server-side.

Syntax

``` Entity pool.atRemoteId(Number ID) ```

Returns

An entity with the selected remote ID from a pool, or undefined if entity with this remote ID does not exists.

Required Arguments

  • ID: Entity remote ID ( entity.remoteId )

Example

This example will check player with ID in pool, and write player name into chat if he exists.

See Also