Skip to content

llSensorRepeat

function ll.SensorRepeat(Name: string, ID: string, Type: number, Range: number, Arc: number, Rate: number)

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.

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

Add example usage here showing SLua/Luau syntax with ll.SensorRepeat().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.