Description:

// MAP 3/28/2009
// Efficient search for finding an object of a given tag and type combination.
// nObjectType must be a proper OBJECT_TYPE const.
// Returns OBJECT_INVALID if no match is found.
object GetObjectByTagAndType(string sTag, int nObjectType, int nTh);

Overview:

Contrary to popular belief, this function does work, but nObjectType is not what you'd expect.

nObjectType parameter does not use OBJECT_TYPE constants. You must instead use the following constants:


AREA = 0x04          CREATURE = 0x05  ITEM = 0x06
TRIGGER = 0x07       PLACEABLE = 0x09 DOOR = 0x0A
AREAOFEFFECT = 0x0B  WAYPOINT = 0x0C  ENCOUNTER = 0x0D
STORE = 0x0E         SOUND = 0x10     STATIC_CAMERA = 0x12
ENV_OBJECT = 0x13    TREE = 0x14      LIGHT = 0x15
PLACED_EFFECT = 0x16

GUI = 0x01 TILE = 0x02 MODULE = 0x03 PROJECTILE = 0x08 DYNAMIC = 0x11 PORTAL = 0x0F




  • No labels