The OBJECT_TYPE_* constants are used to indicate the various types of objects. This is a bit field, which allows constants to be combined with bitwise-or (|).
constant | type |
---|---|
OBJECT_TYPE_INVALID | unknown/unspecified type (These two constants are equal.) |
OBJECT_TYPE_ALL | |
OBJECT_TYPE_AREA_OF_EFFECT | area of effect |
OBJECT_TYPE_CREATURE | creature |
OBJECT_TYPE_DOOR | door |
OBJECT_TYPE_ENCOUNTER | encounter |
OBJECT_TYPE_ITEM | item |
OBJECT_TYPE_PLACEABLE | placeable |
OBJECT_TYPE_STORE | store |
OBJECT_TYPE_TRIGGER | trigger |
OBJECT_TYPE_WAYPOINT | waypoint |
There are no constants indicating areas or the module. (This is possibly due to those types making no sense in all but one of the contexts in which these constants are used.) Also missing constants are sounds.
See also[]
- Commands
CreateObject()
GetFirstInPersistentObject()
GetFirstObjectInShape()
GetNearestObject()
GetNearestObjectToLocation()
GetNextInPersistentObject()
GetNextObjectInShape()
GetObjectType()