Skip to content

llSensorRepeat

Function Syntax
void llSensorRepeat(
  1. string Name, // Object or avatar name.
  2. key ID, // Object or avatar UUID.
  3. integer Type, // Bit-field mask of AGENT, AGENT_BY_LEGACY_NAME, AGENT_BY_USERNAME, ACTIVE, PASSIVE, and/or SCRIPTED
  4. float Range, // Distance to scan. 0.0 - 96.0m.
  5. float Arc, // Angle, in radians, from the local x-axis of the prim to scan.
  6. float Rate // Period, in seconds, between scans.
);

Initiates a periodic scan every Rate seconds, 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.