Difference between revisions of "LlPassTouches"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
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| | |func=llPassTouches|p1_type=integer|p1_name=pass|p1_desc=boolean, if [[TRUE]], touches are passed from children on to parents | ||
|func_footnote | |func_footnote=The default is [[TRUE]] if there is no script to handle the touch events. | ||
|func_desc=Sets | |func_desc=Sets pass-touches [[prim]] attribute. | ||
|return_text | |return_text | ||
|spec | |spec | ||
|caveats | |caveats=This has no effect (whether set [[TRUE]] or [[FALSE]]) from the root. Touches are always passed to the parent when there is '''no touch event script in the child''', even if this is set ([[TRUE]] or [[FALSE]]) within another event in a child's script. If you want to block touches from a child by using this function, you must add a script with a touch event in the child and set to [[FALSE]]. | ||
|constants | |constants | ||
|helpers | |helpers | ||
|also_events= | |also_events= | ||
Line 66: | Line 19: | ||
|notes | |notes | ||
|permission | |permission | ||
| | |negative_index | ||
|sort=PassTouches | |sort=PassTouches | ||
|cat1=Touch | |cat1=Touch | ||
|cat2=Prim | |cat2=Prim | ||
|cat3=Detected | |cat3=Detected | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 12:06, 3 November 2017
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 TRUE if there is no script to handle the touch events.
Caveats
This has no effect (whether set TRUE or FALSE) from the root. Touches are always passed to the parent when there is no touch event script in the child, even if this is set (TRUE or FALSE) within another event in a child's script. If you want to block touches from a child by using this function, you must add a script with a touch event in the child and set to FALSE.