Difference between revisions of "LlDetectedGrab"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/negative_index|false|number}}{{LSL_Function
|func_id=37|func_sleep=0.0|func_energy=10.0
|func_id=37|func_sleep=0.0|func_energy=10.0
|sort=DetectedGrab
|sort=DetectedGrab|func=llDetectedGrab
|func=llDetectedGrab|return_type=vector|p1_type=integer|p1_name=number
|return_type=vector
|p1_type=integer|p1_name=number
|func_footnote=Returns {{LSLG|ZERO_VECTOR|<0.0, 0.0, 0.0>}} if '''number''' is out of range or if the {{LSLGC|Detected|detected}} event does not support this attribute.
|func_footnote=Returns {{LSLG|ZERO_VECTOR|<0.0, 0.0, 0.0>}} if '''number''' is out of range or if the {{LSLGC|Detected|detected}} event does not support this attribute.
|func_desc
|func_desc
Line 12: Line 13:
|helpers
|helpers
|also_functions
|also_functions
|also_events=* {{LSLG|touch_start}}
|also_events={{LSL DefineRow||[[touch_start]]|}}
* {{LSLG|touch}}
{{LSL DefineRow||[[touch]]|}}
* {{LSLG|touch_end}}
{{LSL DefineRow||[[touch_end]]|}}
|also_articles= * {{LSLGC|Detected}}
|also_articles={{LSL DefineRow||{{LSLGC|Detected}}|}}
|notes
|notes
|permission
|negative_index=false
|cat1
|cat1
|cat2
|cat2

Revision as of 10:55, 28 February 2007

Summary

Function: vector llDetectedGrab( integer number );
0.0 Forced Delay
10.0 Energy

Returns a vector that is the grab offset of the user touching object.

• integer number

number does not support negative indexes. Returns <0.0, 0.0, 0.0> if number is out of range or if the detected event does not support this attribute.

Caveats

  • If number is out of bounds the script continues to execute without an error message.

Examples

See Also

Events

•  touch_start
•  touch
•  touch_end

Articles

•  Detected

Deep Notes

Signature

function vector llDetectedGrab( integer number );