Skip to content

llSensor

void llSensor(string Name, key ID, integer Type, float Range, float Arc)

Performs a single scan for Name and ID with Type (AGENT, ACTIVE, PASSIVE, and/or SCRIPTED) within Range meters and Arc radians of forward vector.

Specifying a blank Name, 0 Type, or NULL_KEY ID will prevent filtering results based on that parameter. A range of 0.0 does not perform a scan.

Results are returned in the sensor and no_sensor events.

Parameters
Name (string)
Object or avatar name.
ID (key)
Object or avatar UUID.
Type (integer)
Bit-field mask of AGENT, AGENT_BY_LEGACY_NAME, AGENT_BY_USERNAME, ACTIVE, PASSIVE, and/or SCRIPTED
Range (float)
Distance to scan. 0.0 - 96.0m.
Arc (float)
Angle, in radians, from the local x-axis of the prim to scan.

Add example usage here.

Add additional notes, caveats, or tips here.

  • Related pages can be linked here