LevelEditDefinition
Defined in: server/api.d.ts:4668
Properties
Section titled “Properties”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.
class?
Section titled “class?”
optionalclass?:string
Defined in: server/api.d.ts:4687
An entity’s class, kept for reading only.
optionalguid?:string
Defined in: server/api.d.ts:4682
An entity’s level EntityGuid as sixteen hex digits; required for an entity.
halfSize?
Section titled “halfSize?”
optionalhalfSize?: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.
hidden?
Section titled “hidden?”
optionalhidden?: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.
optionalkind?:"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.
model?
Section titled “model?”
optionalmodel?: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.
optionalname?: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.
position?
Section titled “position?”
optionalposition?:number[] |Vector3
Defined in: server/api.d.ts:4717
Where it stands instead; present, the edit is a move.
rotation?
Section titled “rotation?”
optionalrotation?: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.
scale?
Section titled “scale?”
optionalscale?:number[] |Vector3
Defined in: server/api.d.ts:4727
A move’s scale per axis, from 0.01 to 100. None when omitted.
optionalyaw?: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.