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

WorldLevelObject

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

An object the level placed, as a level edit keys it, and the pose the level gave it. Every field a LevelEditDefinition needs to find it again.

at: Vector3

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

Where the level put it: its pivot, not the point the ray met. Unchanged while an edit has moved it, since it is the key.


class: string | undefined

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

An entity’s engine class; absent for a brush.


guid: string | undefined

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

An entity’s level GUID as sixteen lowercase hex digits; absent for a brush.


kind: "brush" | "entity"

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

A brush is a static mesh or a vegetation instance – a wall, a rock, a tree – found by its mesh and where the level put it. An entity is found by its GUID.


name: string

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

A brush’s mesh path, the same as the hit’s model; an entity’s name.


rotation: Quaternion

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

How the level turned it, for a prop or effect standing in its place. LevelEdit.apply reads a rotation only with a position, so spreading this into a definition moves nothing.


scale: Vector3

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

How the level sized it, per axis. Read only with a position, as rotation is.