Skip to content

MapSector

Type

MapSector

Represents a map sector.

Inherits MapObject

All properties and functions of MapObject can be used in addition to those below.

Properties

Property Type Description
textureFloor string The floor texture of the sector
textureCeiling string The ceiling texture of the sector
heightFloor integer The height of the sector's floor
heightCeiling integer The height of the sector's ceiling
lightLevel integer The light level of the sector
special integer The sector's special
id integer The sector's id (tag)
connectedSides MapSide[] An array of all sides that make up this sector
colour Colour The light colour of the sector
fogColour Colour The fog colour of the sector
planeFloor Plane The floor plane of the sector
planeCeiling Plane The ceiling plane of the sector

Constructors

No Constructors

This type can not be created directly in scripts.

See:

Functions

Overview

Info

ContainsPoint(position) -> boolean


ContainsPoint

Checks if the given position is within the sector.

Parameters

  • position (Point): Point coordinates in map units

Returns

  • boolean: true if position is inside the sector