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

LevelEditDefinition

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

at: number[] | Vector3

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

Where the level put the object: its pivot, matched within 5 cm. A brush’s key, with its mesh. For grass, the centre of the box.


optional class?: string

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

An entity’s class, kept for reading only.


optional guid?: string

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

An entity’s level EntityGuid as sixteen hex digits; required for an entity.


optional halfSize?: number[] | Vector3

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

Grass only, and required for it: half the box along its own two ground axes and up, each from 0.01 to 128 metres. Make it tall enough to hold the ground the plants stand on.


optional hidden?: boolean

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

Whether it is taken out of the world: not drawn and not solid. A grass edit clears its box only while this is set.


optional kind?: "brush" | "entity" | "grass"

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

What the object is; a brush when omitted. A brush has no identity of its own, so it is found by its mesh and where the level put it; a level entity by its EntityGuid. Grass is no object: the edit is an upright box, at, halfSize and yaw, and with hidden every plant of the terrain’s merged vegetation rooted in it goes – tall grass, flowers, ferns – except the ones a player can gather.


optional model?: string

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

A mesh that stands in its place: a prop catalog path such as objects/natural/vegetation/trees/stumps/stump_fagus_a.cgf, or a mesh this server streams. The object goes out of the world, collision included, and this mesh stands where it stood – or at position – as solid static scenery.


optional name?: string

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

A brush’s mesh path, objects/...cgf, as the World Builder shows it; required for a brush. An entity’s name, kept for reading only.


optional position?: number[] | Vector3

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

Where it stands instead; present, the edit is a move.


optional rotation?: number[] | Quaternion

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

A move’s orientation: a Quaternion, {x, y, z, w} or [x, y, z, w]. None when omitted.


optional scale?: number[] | Vector3

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

A move’s scale per axis, from 0.01 to 100. None when omitted.


optional yaw?: number

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

Grass only: the box’s turn about the vertical in degrees, counter-clockwise seen from above. None when omitted.