Skip to content
lsl.devlsl.devLSL Dev

Constants in the DetectType flag set. These are flags and can be combined with bitwise OR.

All constant groups

At a glance, from the LSL definitions
integer ACTIVE = 0x2;  // Objects running a script or physically moving (using server resources).integer AGENT = 0x1;  // Agents (avatars).integer AGENT_BY_LEGACY_NAME = 0x1;  // Used to find agents by legacy name.integer AGENT_BY_USERNAME = 0x10;  // Used to find agents by username (see Avatar Names).integer DAMAGEABLE = 0x20;  // Identifies objects in the world that can process damage.integer PASSIVE = 0x4;  // Identifies static or non-moving in-world objects (which do not consume active server resources).integer SCRIPTED = 0x8;  // Identifies scripted in-world objects.

Constants

ConstantTypeValueDescription
ACTIVEinteger0x2Objects running a script or physically moving (using server resources). In llDetectedType(), it identifies physical objects and agents. In llSensor() or llSensorRepeat(), it searches for moving physical objects or scripted objects.
AGENTinteger0x1Agents (avatars). In llDetectedType, it indicates an avatar. In llSensor or llSensorRepeat, it searches for avatars by legacy name (functionally identical to AGENT_BY_LEGACY_NAME, though using AGENT_BY_LEGACY_NAME is recommended instead).
AGENT_BY_LEGACY_NAMEinteger0x1Used to find agents by legacy name. In llDetectedType, it indicates an avatar. In llSensor or llSensorRepeat, it searches for avatars by legacy name.
AGENT_BY_USERNAMEinteger0x10Used to find agents by username (see Avatar Names).
DAMAGEABLEinteger0x20Identifies objects in the world that can process damage. In llDetectedType, it indicates a damageable agent, or an object containing a script with on_damage or final_damage events. Can also filter llSensor/llSensorRepeat calls.
PASSIVEinteger0x4Identifies static or non-moving in-world objects (which do not consume active server resources). In llDetectedType(), indicates non-physical objects. In llSensor()/llSensorRepeat() filters, searches for non-physical, non-scripted, inactive, or non-moving physical objects.
SCRIPTEDinteger0x8Identifies scripted in-world objects. In llDetectedType(), indicates the target has at least one active script. In llSensor()/llSensorRepeat() filters, searches for objects containing active scripts that are currently running.

Used by