Don't click here unless you want to be banned.

LSL Wiki : llDetectedType

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
integer llDetectedType(integer number)

Returns the detected object type (AGENT, ACTIVE, PASSIVE, SCRIPTED) number (returns 0 if number is not a valid sensed object; other values are on sensor).

Note: The return value is a bitfield, so comparisons need to be an AND check:
if (llDetectedType(0) & AGENT)
    // do stuff

Note: The llDetected* functions will only return a meaningful value in the collision(), collision_start(), collision_end(), sensor(), touch(), touch_start(), or touch_end() events.

This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Detection | Object Type
There is no comment on this page. [Display comments/form]