Difference between revisions of "LlPassCollisions"

From Second Life Wiki
Jump to navigation Jump to search
(SVC-5923 fix behavior change in server 1.40.2)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|inject-2={{Issues/SVC-3306}}{{LSL_Function/boolean|pass|if=*|td=collisions are passed from children on to the root|fd=collisions are not passed on to the root}}
|inject-2={{Issues/SVC-3306}}
|func_id=166|func_sleep=0.0|func_energy=10.0
|func_id=166|func_sleep=0.0|func_energy=10.0
|func=llPassCollisions|p1_type=integer|p1_subtype=boolean|p1_name=pass
|func=llPassCollisions|p1_type=integer|p1_name=pass|p1_desc=integer in the interval {{Interval|gte=0|lte=2|center=pass}}|p1_hover=integer in the interval {{Interval/Text|gte=0|lte=2|center=pass}}
|func_footnote=The default is [[FALSE]] if there is no script to handle the collision events in the prim.
|func_footnote=
* '''As of server version 1.40.2, this function now has 3 inputs for operation: 1,2, anything else behaves like 0.''' See {{Jira|SVC-5923}}
{{{!}}{{prettytable}}
* An input of 2 will not pass collisions to root even with no collision script in the child prim.
{{!}}-{{hl2}}
|func_desc=Sets pass-collisions [[prim]] attribute.
! Value
! {{LSLGC|Collision|collision}} Script
! No {{LSLGC|Collision|collision}} Script
! Description
{{!}}-
{{!}} 0
{{!}} {{no|not passed}}
{{!}} {{yes|passed}}
{{!}} '''Default:''' Collisions are not passed on to the root while there is a script in the prim.
{{!}}-
{{!}} 1
{{!}} {{yes|passed}}
{{!}} {{yes|passed}}
{{!}} Collisions are passed from children on to the root.
{{!}}-
{{!}} 2
{{!}} {{no|not passed}}
{{!}} {{no|not passed}}
{{!}} Collisions are never passed on to the root.
{{!}}}
|func_desc=Sets the pass-collisions [[prim]] attribute.
|return_text
|return_text
|spec
|spec

Revision as of 17:47, 1 January 2016

Summary

Function: llPassCollisions( integer pass );

Sets the pass-collisions prim attribute.

• integer pass integer in the interval [0, 2]

Value collision Script No collision Script Description
0 not passed passed Default: Collisions are not passed on to the root while there is a script in the prim.
1 passed passed Collisions are passed from children on to the root.
2 not passed not passed Collisions are never passed on to the root.

Examples

See Also

Deep Notes

All Issues

~ Search JIRA for related Issues
   Add enumeration to llPassCollisions() to provide PASS_ALWAYS, PASS_IF_NOT_HANDLED, and PASS_NEVER as explicit options.
(Was: Collisions passed to parent REGARDLESS llPassCollisions(FALSE) in child)

Footnotes

  1. ^ The ranges in this article are written in Interval Notation.

Signature

function void llPassCollisions( integer pass );