Returns the id of the zone (the index of the zone in the scene).
Returns the lowest bounding box corner of the zone as [x, y, z] (West, Down, North)
Array of 3 values representing the position as [x, y, z]
Returns the highest bounding box corner of the zone as [x, y, z] (East, Up, South)
Array of 3 values representing the position as [x, y, z]
Returns the registers of the zone as an array of 8 numbers.
The meaning of the registers depends on the zone type.
This is not documented enough yet. You will need to open the scene in LBArchitect tool, in order to see what each register means for each zone type.
setRegisters - to set the zone registers.
Returns the type of the zone.
The zone value is an extra register of the zone, that can have different meaning depending on zone type.
This is not documented enough yet. You will need to open the scene in LBArchitect tool, in order to see what the zone value means for each zone type.
setZoneValue - to set the zone value.
Sets the lowest bounding box corner of the zone (West, Down, North).
Array of 3 numbers: [x, y, z].
Sets the highest bounding box corner of the zone (East, Up, South).
Array of 3 numbers: [x, y, z].
Sets the registers of the zone. The meaning of the registers depends on the zone type.
Array of 8 numbers representing the zone registers.
getRegisters - for more information.
Sets the type of the zone.
To disable a zone, set its type to ZoneTypes.Disabled.
The zone type value.
Sets the zone value, which is an extra register of the zone. The meaning depends on the zone type.
The zone value to set.
getZoneValue - for more information.
The Zone object provides the API to read and modify scene zones properties.
Zones are invisible bounded boxes on the scene, that recognize when player or other actors are inside them. They can be used to interract, trigger events, display text, give items, etc.
The setters of the zone can only be used in the scene setup phase (see SceneEvents.afterLoadScene event).
See
ZoneTypes - to see all possible zone types.