Difference between revisions of "LlPassTouches"

From Second Life Wiki
Jump to: navigation, search
(caveat)
Line 1: Line 1:
 
{{LSL_Function
 
{{LSL_Function
 
|func_id=154|func_sleep=0.0|func_energy=10.0
 
|func_id=154|func_sleep=0.0|func_energy=10.0
|func=llPassTouches|p1_type=integer|p1_name=pass|p1_desc=boolean, if {{LSLG|TRUE}}, touches are passed from children on to parents  
+
|func=llPassTouches|p1_type=integer|p1_name=pass|p1_desc=boolean, if [[TRUE]], touches are passed from children on to parents  
|func_footnote=default is {{LSLG|FALSE}}
+
|func_footnote=The default is [[FALSE]] if there is no script to handle the touch events.
 
|func_desc=Sets pass-touches [[prim]] attribute.
 
|func_desc=Sets pass-touches [[prim]] attribute.
 
|return_text
 
|return_text
Line 10: Line 10:
 
|examples
 
|examples
 
|helpers
 
|helpers
|also_functions=
 
 
|also_events=
 
|also_events=
 
{{LSL DefineRow||[[touch_start]]|}}
 
{{LSL DefineRow||[[touch_start]]|}}

Revision as of 20:44, 24 April 2008

Summary

Function: llPassTouches( integer pass );

Sets pass-touches prim attribute.

• integer pass boolean, if TRUE, touches are passed from children on to parents

The default is FALSE if there is no script to handle the touch events.

Caveats

This has no effect if the child prim has no touch events in it. Touches are passed to the parent always when there is no touch event script in the child, no matter what this is set to. If you want to block touches from a child, you must add a script with a touch event in the child instead of using this function.

All Issues ~ Search JIRA for related Bugs

Examples

See Also

Events

•  touch_start
•  touch
•  touch_end

Functions

•  llPassCollisions

Deep Notes

Search JIRA for related Issues

Signature

function void llPassTouches( integer pass );