llDetectedType
function ll.DetectedType(Number: number): numberReturns the type (AGENT, ACTIVE, PASSIVE, SCRIPTED) of detected object.
Returns 0 if number is not a valid index.
Note that number is a bit-field, so comparisons need to be a bitwise checked. e.g.:
integer iType = llDetectedType(0);
{
// ...do stuff with the agent
}
Parameters
-
Number(number)
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.DetectedType().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llDetectedType