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

LSL Wiki : llDetectedType

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are xcrawl107.alexa.com
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.


Functions | Detection | Object Type
Comments [Hide comments/form]
Attach a comment to this page: