DetectType
Constants in the DetectType flag set. These are flags and can be combined with bitwise OR.
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
| Constant | Type | Value | Description |
|---|---|---|---|
ACTIVE | integer | 0x2 | Objects 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. |
AGENT | integer | 0x1 | Agents (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_NAME | integer | 0x1 | Used 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_USERNAME | integer | 0x10 | Used to find agents by username (see Avatar Names). |
DAMAGEABLE | integer | 0x20 | Identifies 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. |
PASSIVE | integer | 0x4 | Identifies 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. |
SCRIPTED | integer | 0x8 | Identifies 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
llSensorfunctionPerforms a single scan from the prim's forward vector for name and id of type within radius meters and arc radians. Results trigger a sensor or no_sensor event. Passing empty filters (blank name, 0 type, or NULL_KEY id) disables that filter.llSensorRepeatfunctionSets up a repeating periodic scan every rate seconds for name and id of type within radius meters and arc radians of the forward vector. Results trigger sensor or no_sensor events.