AreaDefinition
Defined in: server/api.d.ts:7077
Properties
Section titled “Properties”collision?
Section titled “collision?”
optionalcollision?:boolean
Defined in: server/api.d.ts:7146
Invisible boundary collision from both sides; false when omitted. Polygons need a simple outline and positive height. Boxes and polygons get side walls only unless collisionFloor or collisionCeiling asks for more; spheres use a tessellated shell.
collisionCeiling?
Section titled “collisionCeiling?”
optionalcollisionCeiling?:boolean
Defined in: server/api.d.ts:7156
box and shape: also close the top of the boundary with a plate across the whole interior; false when omitted.
collisionFloor?
Section titled “collisionFloor?”
optionalcollisionFloor?:boolean
Defined in: server/api.d.ts:7151
box and shape: also close the bottom of the boundary with a plate across the whole interior; false when omitted.
collisionThickness?
Section titled “collisionThickness?”
optionalcollisionThickness?:number
Defined in: server/api.d.ts:7161
The boundary’s thickness in metres, centred on the outline: 0.2 when omitted, from 0.05 to 2.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: server/api.d.ts:7166
Whether it starts enabled; true when omitted.
height?
Section titled “height?”
optionalheight?:number
Defined in: server/api.d.ts:7121
shape: how far above its lowest corner the area reaches; 0, the default, for no ceiling.
id:
string
Defined in: server/api.d.ts:7081
The area’s identity, unique among script areas. It may not be sixteen hex digits, which is how a level area’s GUID reads.
labels?
Section titled “labels?”
optionallabels?:string[]
Defined in: server/api.d.ts:7131
Free-form labels, found again with Area.withLabel.
optionalmax?:Vector3
Defined in: server/api.d.ts:7111
box: the opposite corner. Every component must be above min’s.
metadata?
Section titled “metadata?”
optionalmetadata?:Record<string,unknown>
Defined in: server/api.d.ts:7136
Anything JSON can hold, kept on the area for scripts.
optionalmin?:Vector3
Defined in: server/api.d.ts:7106
box: the corner nearest negative infinity, relative to position before rotation.
optionalname?:string
Defined in: server/api.d.ts:7086
A readable name; the id when omitted.
points?
Section titled “points?”
optionalpoints?:Vector3[]
Defined in: server/api.d.ts:7116
shape: 3 to 256 corners relative to position before rotation, closed back to the first. As in the engine, the floor is the lowest corner.
position?
Section titled “position?”
optionalposition?:Vector3
Defined in: server/api.d.ts:7096
Where the shape is placed from; the origin when omitted.
radius?
Section titled “radius?”
optionalradius?:number
Defined in: server/api.d.ts:7126
sphere: its radius around position.
rotation?
Section titled “rotation?”
optionalrotation?:Vector3|Quaternion
Defined in: server/api.d.ts:7101
The shape’s orientation: a Quaternion or {x, y, z, w}, or Euler angles in degrees.
type:
"sphere"|"box"|"shape"
Defined in: server/api.d.ts:7091
CryEngine’s own area shapes: AreaBox, AreaShape (a closed polygon with a height) and AreaSphere.
virtualWorld?
Section titled “virtualWorld?”
optionalvirtualWorld?:number
Defined in: server/api.d.ts:7141
The one virtual world it belongs to; every world when omitted.