Difference between revisions of "User:Haravikk Mistral/DETECT*"

From Second Life Wiki
Jump to navigation Jump to search
(Tweaked terminology, correct DETECT_OWNER (returns the UUID not the name))
Line 10: Line 10:
|-
|-
|<code>DETECT_GROUP</code>
|<code>DETECT_GROUP</code>
|Populates [[llDetectedGroup]]() with the key of the group that the struck object, avatar, or land belongs to.
|Populates [[llDetectedGroup]]() with the key of the group that the detected object, avatar, or land belongs to.
|-
|-
|<code>DETECT_KEY</code>
|<code>DETECT_KEY</code>
|Populates [[llDetectedKey]]() with the key of the primitive or avatar that was struck. If land is detected this value will be [[NULL_KEY]].
|Populates [[llDetectedKey]]() with the key of the primitive or avatar that was detected. If land is detected this value will be [[NULL_KEY]].
|-
|-
|<code>DETECT_ROOT_KEY</code>
|<code>DETECT_ROOT_KEY</code>
|Populates [[llDetectedKey]]() with the key of the object root or avatar that was struck. If land is detected this value will be <code>NULL_KEY</code>.
|Populates [[llDetectedKey]]() with the key of the object root or avatar that was detected. If land is detected this value will be <code>NULL_KEY</code>.
|-
|-
|<code>DETECT_LINK_NUMBER</code>
|<code>DETECT_LINK_NUMBER</code>
|Populates [[llDetectedLinkNumber]]() with the link-number of the primitive that was struck. If an avatar or land were struck then this will be zero.
|Populates [[llDetectedLinkNumber]]() with the link-number of the primitive that was detected. If an avatar or land were struck then this will be zero.
|-
|-
|<code>DETECT_NAME</code>
|<code>DETECT_NAME</code>
|Populates [[llDetectedName]]() with the name of the primitive or the {{LSLGC|Avatar/Name|display name}} of the avatar that was struck. If land is detected this value will be an empty string.
|Populates [[llDetectedName]]() with the name of the primitive or the {{LSLGC|Avatar/Name|display name}} of the avatar that was detected. If land is detected this value will be an empty string.
|-
|-
|<code>DETECT_ROOT_NAME</code>
|<code>DETECT_ROOT_NAME</code>
|Populates [[llDetectedName]]() with the name of the object root or {{LSLGC|Avatar/Name|display name}} of the avatar that was struck. If land is detected this value will be an empty string.
|Populates [[llDetectedName]]() with the name of the object root or {{LSLGC|Avatar/Name|display name}} of the avatar that was detected. If land is detected this value will be an empty string.
|-
|-
|<code>DETECT_LEGACY_NAME</code>
|<code>DETECT_LEGACY_NAME</code>
|Populates [[llDetectedName]]() with the name of the primitive or the {{LSLGC|Avatar/Name|legacy name}} of the avatar that was struck. If land is detected this value will be an empty string.
|Populates [[llDetectedName]]() with the name of the primitive or the {{LSLGC|Avatar/Name|legacy name}} of the avatar that was detected. If land is detected this value will be an empty string.
|-
|-
|<code>DETECT_ROOT_LEGACY_NAME</code>
|<code>DETECT_ROOT_LEGACY_NAME</code>
|Populates [[llDetectedName]]() with the name of the object root or {{LSLGC|Avatar/Name|legacy name}} of the avatar that was struck. If land is detected this value will be an empty string.
|Populates [[llDetectedName]]() with the name of the object root or {{LSLGC|Avatar/Name|legacy name}} of the avatar that was detected. If land is detected this value will be an empty string.
|-
|-
|<code>DETECT_USERNAME</code>
|<code>DETECT_USERNAME</code>
|Populates [[llDetectedName]]() with the name of the primitive or the {{LSLGC|Avatar/Name|legacy name}} of the avatar that was struck. If land is detected this value will be an empty string.
|Populates [[llDetectedName]]() with the name of the primitive or the {{LSLGC|Avatar/Name|legacy name}} of the avatar that was detected. If land is detected this value will be an empty string.
|-
|-
|<code>DETECT_ROOT_USERNAME</code>
|<code>DETECT_ROOT_USERNAME</code>
|Populates [[llDetectedName]]() with the name of the object root or {{LSLGC|Avatar/Name|username}} of the avatar that was struck. If land is detected this value will be an empty string.
|Populates [[llDetectedName]]() with the name of the object root or {{LSLGC|Avatar/Name|username}} of the avatar that was detected. If land is detected this value will be an empty string.
|-
|-
|<code>DETECT_OWNER</code>
|<code>DETECT_OWNER</code>
|Populates [[llDetectedOwner]]() with the name of the avatar that owns the struck object or land. If an avatar is struck then their key is returned here.
|Populates [[llDetectedOwner]]() with the UUID of the avatar that owns the detected object or land. If an avatar is detected then their key is returned here.
|-
|-
|<code>DETECT_POSITION</code>
|<code>DETECT_POSITION</code>
|Populates [[llDetectedPos]]() with the position of the primitive that was struck.
|Populates [[llDetectedPos]]() with the position of the primitive that was detected.
|-
|-
|<code>DETECT_ROOT_POSITION</code>
|<code>DETECT_ROOT_POSITION</code>
|Populates [[llDetectedPos]]() with the position of the object root that was struck.
|Populates [[llDetectedPos]]() with the position of the object root that was detected.
|-
|-
|<code>DETECT_ROTATION</code>
|<code>DETECT_ROTATION</code>
|Populates [[llDetectedRot]]() with the rotation of the primitive that was struck.
|Populates [[llDetectedRot]]() with the rotation of the primitive that was detected.
|-
|-
|<code>DETECT_ROOT_ROTATION</code>
|<code>DETECT_ROOT_ROTATION</code>
|Populates [[llDetectedRot]]() with the rotation of the object root that was struck.
|Populates [[llDetectedRot]]() with the rotation of the object root that was detected.
|-
|-
|<code>DETECT_TOUCH_BINORMAL</code>
|<code>DETECT_TOUCH_BINORMAL</code>
|Populates [[llDetectedTouchBinormal]]() with the tangental normal vector at which the detected object was struck.
|Populates [[llDetectedTouchBinormal]]() with the tangental normal vector of the point at which the object was detected.
|-
|-
|<code>DETECT_TOUCH_FACE</code>
|<code>DETECT_TOUCH_FACE</code>
|Populates [[llDetectedTouchFace]]() with the primitive face that was struck. If an avatar or land were struck then this will be [[TOUCH_INVALID_FACE]].
|Populates [[llDetectedTouchFace]]() with the primitive face that was detected. If an avatar or land were detected then this will be [[TOUCH_INVALID_FACE]].
|-
|-
|<code>DETECT_TOUCH_NORMAL</code>
|<code>DETECT_TOUCH_NORMAL</code>
|Populates [[llDetectedTouchNormal]]() with the normal vector at which the detected object was struck.
|Populates [[llDetectedTouchNormal]]() with the normal vector of the point at which the object was detected.
|-
|-
|<code>DETECT_TOUCH_ST</code>
|<code>DETECT_TOUCH_ST</code>
|Populates [[llDetectedTouchST]]() with the face coordinates at which the detected object was struck. If an avatar or land are struck then this will be [[TOUCH_INVALID_TEXCOORD]].
|Populates [[llDetectedTouchST]]() with the face coordinates of the point at which the object was detected. If an avatar or land are detected then this will be [[TOUCH_INVALID_TEXCOORD]].
|-
|-
|<code>DETECT_TOUCH_UV</code>
|<code>DETECT_TOUCH_UV</code>
|Populates [[llDetectedTouchST]]() with the texture coordinates at which the detected object was struck. If an avatar or land are struck then this will be [[TOUCH_INVALID_TEXCOORD]].
|Populates [[llDetectedTouchST]]() with the texture coordinates of the point at which the object was detected. If an avatar or land are struck then this will be [[TOUCH_INVALID_TEXCOORD]].
|-
|-
|<code>DETECT_TYPE</code>
|<code>DETECT_TYPE</code>
|Populates [[llDetectedType]]() with the type of object that was struck.
|Populates [[llDetectedType]]() with the type of object that was detected.
|-
|-
|<code>DETECT_VELOCITY</code>
|<code>DETECT_VELOCITY</code>
|Populates [[llDetectedVel]]() with the velocity of the object that was struck.
|Populates [[llDetectedVel]]() with the velocity of the object that was detected.
|}
|}

Revision as of 02:52, 27 October 2010


Constant Description
DETECT_ALL Convenience entry to return all available data. Essentially this is the same as providing a list with all other DETECT_* constants valid for the current function, excluding those asking specifically for root-prims, avatar username, or avatar legacy name.
DETECT_GROUP Populates llDetectedGroup() with the key of the group that the detected object, avatar, or land belongs to.
DETECT_KEY Populates llDetectedKey() with the key of the primitive or avatar that was detected. If land is detected this value will be NULL_KEY.
DETECT_ROOT_KEY Populates llDetectedKey() with the key of the object root or avatar that was detected. If land is detected this value will be NULL_KEY.
DETECT_LINK_NUMBER Populates llDetectedLinkNumber() with the link-number of the primitive that was detected. If an avatar or land were struck then this will be zero.
DETECT_NAME Populates llDetectedName() with the name of the primitive or the display name of the avatar that was detected. If land is detected this value will be an empty string.
DETECT_ROOT_NAME Populates llDetectedName() with the name of the object root or display name of the avatar that was detected. If land is detected this value will be an empty string.
DETECT_LEGACY_NAME Populates llDetectedName() with the name of the primitive or the legacy name of the avatar that was detected. If land is detected this value will be an empty string.
DETECT_ROOT_LEGACY_NAME Populates llDetectedName() with the name of the object root or legacy name of the avatar that was detected. If land is detected this value will be an empty string.
DETECT_USERNAME Populates llDetectedName() with the name of the primitive or the legacy name of the avatar that was detected. If land is detected this value will be an empty string.
DETECT_ROOT_USERNAME Populates llDetectedName() with the name of the object root or username of the avatar that was detected. If land is detected this value will be an empty string.
DETECT_OWNER Populates llDetectedOwner() with the UUID of the avatar that owns the detected object or land. If an avatar is detected then their key is returned here.
DETECT_POSITION Populates llDetectedPos() with the position of the primitive that was detected.
DETECT_ROOT_POSITION Populates llDetectedPos() with the position of the object root that was detected.
DETECT_ROTATION Populates llDetectedRot() with the rotation of the primitive that was detected.
DETECT_ROOT_ROTATION Populates llDetectedRot() with the rotation of the object root that was detected.
DETECT_TOUCH_BINORMAL Populates llDetectedTouchBinormal() with the tangental normal vector of the point at which the object was detected.
DETECT_TOUCH_FACE Populates llDetectedTouchFace() with the primitive face that was detected. If an avatar or land were detected then this will be TOUCH_INVALID_FACE.
DETECT_TOUCH_NORMAL Populates llDetectedTouchNormal() with the normal vector of the point at which the object was detected.
DETECT_TOUCH_ST Populates llDetectedTouchST() with the face coordinates of the point at which the object was detected. If an avatar or land are detected then this will be TOUCH_INVALID_TEXCOORD.
DETECT_TOUCH_UV Populates llDetectedTouchST() with the texture coordinates of the point at which the object was detected. If an avatar or land are struck then this will be TOUCH_INVALID_TEXCOORD.
DETECT_TYPE Populates llDetectedType() with the type of object that was detected.
DETECT_VELOCITY Populates llDetectedVel() with the velocity of the object that was detected.