Difference between revisions of "LlDetectedTouchFace"

From Second Life Wiki
Jump to navigation Jump to search
m (LlDetectedLinkFace moved to LlDetectedFace: Won't return the link-number, but only the face-number. So, having "Link" in the name doesn't make much sense.)
m (Renamed llDetectedLinkFace to llDetectedFace)
Line 4: Line 4:
|func_sleep=0.0
|func_sleep=0.0
|func_energy=10.0
|func_energy=10.0
|func=llDetectedLinkFace
|func=llDetectedFace
|sort=DetectedLinkFace
|sort=DetectedFace
|p1_type=integer|p1_name=number|p1_desc=touch index
|p1_type=integer|p1_name=number|p1_desc=touch index
|func_footnote=For the {{LSLGC|Touch|touch}} category of events only.
|func_footnote=For the {{LSLGC|Touch|touch}} category of events only.

Revision as of 03:12, 9 August 2007

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: integer llDetectedFace( integer number );
REQUEST Function ID
0.0 Forced Delay
10.0 Energy

Returns an integer that is the number of the face the avatar clicked on. If not supported by the event, returns -1

• integer number touch index

number does not support negative indexes. For the touch category of events only.

Caveats

  • If number is out of bounds the script continues to execute without an error message.
All Issues ~ Search JIRA for related Bugs

Examples

Notes

Should reduce prim-count for all button based gadgets. The data seems to be available anyway; it's used in the texture-selection mode of the object-"Edit"

See Also

Events

•  touch_start
•  touch
•  touch_end

Functions

•  llDetectedLinkNumber

Articles

•  Detected

Deep Notes

Search JIRA for related Issues

Signature

//function integer llDetectedFace( integer number );