Detected
Read information about detections reported by 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
Kind
llAdjustDamage(integer number, float new_damage)Modifies the amount of damage applied by the currenton_damageevent after it completes processing, specified by the damage event index number.functionlist llDetectedDamage(integer number)Returns a list containing pending damage information for the event specified by number, including the current damage, the damage type, and the original damage delivered.functionvector llDetectedGrab(integer number)Returns 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.functioninteger llDetectedGroup(integer number)ReturnsTRUEif 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.functionkey llDetectedKey(integer number)Returns the key (UUID) of the detected object or avatar specified by number, orNULL_KEYif number is not a valid index.functioninteger llDetectedLinkNumber(integer number)Returns 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.functionstring llDetectedName(integer item)Returns 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.functionkey llDetectedOwner(integer number)Returns the key (UUID) of the owner of the detected object specified by number. Returns an invalid key if number is not a valid index.functionvector 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.functionkey llDetectedRezzer(integer number)Returns the key (UUID) of the object or avatar that rezzed the detected object specified by number.functionrotation llDetectedRot(integer number)Returns 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.functionvector llDetectedTouchBinormal(integer index)Returns 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 withllDetectedTouchNormalto determine the tangent space.functioninteger llDetectedTouchFace(integer index)Returns the integer index of the face clicked by the avatar in the touch event specified by index.functionvector llDetectedTouchNormal(integer index)Returns the surface normal vector (perpendicular to the surface) at the touched location specified by index. Can be used withllDetectedTouchBinormalto determine the tangent space.functionvector llDetectedTouchPos(integer index)Returns 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.functionvector llDetectedTouchST(integer index)Returns 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]. ReturnsTOUCH_INVALID_TEXCOORDif coordinates cannot be determined.functionvector llDetectedTouchUV(integer index)Returns 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). ReturnsTOUCH_INVALID_TEXCOORDif coordinates cannot be determined.functioninteger llDetectedType(integer number)Returns 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.functionvector llDetectedVel(integer number)Returns 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.functiontouch_start(integer num_detected)Triggered when an avatar first touches the object. Passes num_detected, representing the number of touching agents.eventtouch(integer num_detected)Triggered continuously while an avatar touches the object. Passes num_detected, representing the number of touching agents.eventtouch_end(integer num_detected)Triggered when an avatar stops touching the object. Passes num_detected, representing the number of touching agents.eventcollision_start(integer num_detected)Triggered when an avatar or another object first begins colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.eventcollision(integer num_detected)Triggered continuously while an avatar or another object is colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.eventcollision_end(integer num_detected)Triggered when an avatar or another object stops colliding with the object containing the script. Passes num_detected, representing the number of detected collisions.eventsensor(integer num_detected)Triggered when objects matching constraints ofllSensororllSensorRepeatare successfully detected. Passes num_detected, representing the number of detected targets.eventno_sensor()Triggered when active sensors (fromllSensororllSensorRepeat) complete a scan without finding any matching targets.eventon_damage(integer num_detected)Triggered 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.eventfinal_damage(integer num_detected)Triggered after allon_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.event
No matching entries. Try a different term or filter.