Detected
Read information about detections reported by events.
Feature: Events
What do you want to do?
key llDetectedKey(integer number)Returns the key (UUID) of the detected object or avatar specified by number, or NULL_KEY if number is not a valid index.vector llDetectedPos(integer number)Returns the vector position (in region coordinates) of the detected object or avatar specified by number, or <0.0, 0.0, 0.0> if number is not a valid index.integer llDetectedTouchFace(integer index)Returns the integer index of the face clicked by the avatar in the touch event specified by index.Reference
29 topic entries
llAdjustDamage(integer number, float new_damage)functionModifies the amount of damage applied by the current
on_damageevent after it completes processing, specified by the damage event index number.list llDetectedDamage(integer number)functionReturns a list containing pending damage information for the event specified by number, including the current damage, the damage type, and the original damage delivered.
vector llDetectedGrab(integer number)functionReturns a vector representing the grab offset of the user touching the object. Only works in touch events and returns <0.0, 0.0, 0.0> if number is not a valid index.
integer llDetectedGroup(integer number)functionReturns
TRUEif the detected object or avatar specified by number has the same active group as the prim containing the script. ReturnsFALSEif the group is not active or if they are not in the group.key llDetectedKey(integer number)functionReturns the key (UUID) of the detected object or avatar specified by number, or
NULL_KEYif number is not a valid index.integer llDetectedLinkNumber(integer number)functionReturns the link number (integer) of the triggered event (touches and collisions only) specified by number. Returns 0 for non-linked objects, 1 for the root prim, and 2+ for child prims. Returns 0 if not supported by the event.
string llDetectedName(integer item)functionReturns a string representing the name of the detected object or avatar specified by item. Returns an empty string if item is not a valid index.
key llDetectedOwner(integer number)functionReturns the key (UUID) of the owner of the detected object specified by number. Returns an invalid key if number is not a valid index.
vector llDetectedPos(integer number)functionReturns the vector position (in region coordinates) of the detected object or avatar specified by number, or <0.0, 0.0, 0.0> if number is not a valid index.
key llDetectedRezzer(integer number)functionReturns the key (UUID) of the object or avatar that rezzed the detected object specified by number.
rotation llDetectedRot(integer number)functionReturns the rotation of the detected object or avatar specified by number, or <0.0, 0.0, 0.0, 1.0> if number is not a valid offset index.
vector llDetectedTouchBinormal(integer index)functionReturns the surface binormal vector (tangent to the surface, pointing along the positive T (V) direction of tangent space) at the touched location specified by index. Can be used with
llDetectedTouchNormalto determine the tangent space.integer llDetectedTouchFace(integer index)functionReturns the integer index of the face clicked by the avatar in the touch event specified by index.
vector llDetectedTouchNormal(integer index)functionReturns the surface normal vector (perpendicular to the surface) at the touched location specified by index. Can be used with
llDetectedTouchBinormalto determine the tangent space.vector llDetectedTouchPos(integer index)functionReturns the vector position where the object was touched (specified by index) in region coordinates, or in screen-space coordinates if the object is attached as a HUD.
vector llDetectedTouchST(integer index)functionReturns the surface coordinates (<s, t, 0.0>) where the prim was touched, specified by index. X and Y contain the horizontal (s) and vertical (t) face coordinates, typically in the interval [0.0, 1.0]. Returns
TOUCH_INVALID_TEXCOORDif coordinates cannot be determined.vector llDetectedTouchUV(integer index)functionReturns the texture coordinates (<u, v, 0.0>) where the prim was touched, specified by index. X and Y contain the horizontal (u) and vertical (v) texture coordinates, typically in the interval [0.0, 1.0] (affected by repeats and rotation). Returns
TOUCH_INVALID_TEXCOORDif coordinates cannot be determined.integer llDetectedType(integer number)functionReturns an integer bitfield representing the types (
AGENT,ACTIVE,PASSIVE, orSCRIPTED) of the detected object or avatar specified by number. Returns 0 if number is not a valid index.vector llDetectedVel(integer number)functionReturns the vector velocity of the detected object or avatar specified by number, or <0.0, 0.0, 0.0> if number is not a valid offset index.
touch_start(integer num_detected)eventTriggered when an avatar first touches the object. Passes num_detected, representing the number of touching agents.
touch(integer num_detected)eventTriggered continuously while an avatar touches the object. Passes num_detected, representing the number of touching agents.
touch_end(integer num_detected)eventTriggered when an avatar stops touching the object. Passes num_detected, representing the number of touching agents.
collision_start(integer num_detected)eventTriggered when an avatar or another object first begins colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.
collision(integer num_detected)eventTriggered continuously while an avatar or another object is colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.
collision_end(integer num_detected)eventTriggered when an avatar or another object stops colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.
sensor(integer num_detected)eventTriggered when objects matching constraints of
llSensororllSensorRepeatare successfully detected. Passes num_detected, representing the number of detected targets.no_sensor()eventTriggered when active sensors (from
llSensororllSensorRepeat) complete a scan without finding any matching targets.on_damage(integer num_detected)eventTriggered when damage has been inflicted on an avatar or task, but before it is applied or distributed. Collision detected functions (llDetected*),
llDetectedDamage, andllAdjustDamageare available. Passes num_detected, representing the number of pending damage events.final_damage(integer num_detected)eventTriggered after all
on_damageevents across all scripts have completed and damage is actively applied to the avatar or distributed among seated avatars. Collision detected functions (llDetected*) andllDetectedDamageare available.
No matching entries. Try a different term or filter.