Skip to content

llDetectedType

Function Syntax
integer llDetectedType(
  1. integer Number
);

Returns 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

}