Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

llDetectedType

LSL
integer llDetectedType(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\ }

Parameters

TypeName
integer number
Energy 10

The Linden Scripting Library — what every SL-compatible grid provides.

More in LSL