Difference between revisions of "LlPassTouches"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Gigs Taggart (talk | contribs) (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 | |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 | |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_events= | |also_events= | ||
{{LSL DefineRow||[[touch_start]]|}} | {{LSL DefineRow||[[touch_start]]|}} |
Revision as of 20:44, 24 April 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llPassTouches( integer pass );154 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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.