Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

WorldNearbyEntity

Defined in: server/api.d.ts:8003

One entity a sphere reported, and where it stood when it did.

class: string

Defined in: server/api.d.ts:8027

The engine class it belongs to – AnimDoor, NPC_NAI, GeomEntity.


distance: number

Defined in: server/api.d.ts:8012

How far it is from the centre of the sphere, in metres.


guid: string | null

Defined in: server/api.d.ts:8017

The level’s own identity for it, as sixteen lowercase hex digits. Null for anything the session spawned, which the level does not name.


name: string

Defined in: server/api.d.ts:8022

The name the level gives it, often empty.


physicalized: boolean

Defined in: server/api.d.ts:8032

Whether the engine has built physics for it, which is what makes it something a trace could also find.


position: Vector3

Defined in: server/api.d.ts:8007

Where it is, in world-space metres.