Skip to content

sensor

LLEvents:on("sensor", function(NumberDetected: number)
-- ...
end)

This event is raised whenever objects matching the constraints of the llSensor command are detected.

The number of detected objects is passed to the script in the parameter. Information on those objects may be gathered via the llDetected* functions.

Parameters
NumberDetected (number)

Add example usage here showing how to handle the sensor event in SLua/Luau.

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