Difference between revisions of "LlPassCollisions"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|inject-2={{Issues/SVC-3306}}{{LSL Function/Pass|pass|{{LSLGC|Collision|collision}}|Collisions|default=PASS_IF_NOT_HANDLED}}
|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_name=pass|p1_desc={{HoverText|boolean|TRUE or FALSE}}, if {{LSLG|TRUE}}, collisions are passed from children on to parents
|func=llPassCollisions|p1_type=integer|p1_subtype=pass|p1_name=pass
|func_footnote=default is {{LSLG|FALSE}}.
|func_footnote
|func_desc=Sets pass-collisions [[prim]] attribute.
|func_desc=Sets the pass-collisions [[prim]] attribute.
|return_text
|return_text
|spec
|spec
Line 10: Line 11:
|examples
|examples
|helpers
|helpers
|also_functions=*{{LSLG|llPassTouches}}
|also_functions=
|also_events
{{LSL DefineRow||[[llPassTouches]]|}}
{{LSL DefineRow||[[llCollisionFilter]]|}}
{{LSL DefineRow||[[llCollisionSound]]|}}
{{LSL DefineRow||[[llCollisionSprite]]|}}
{{LSL DefineRow||[[llVolumeDetect]]|}}
|also_events=
{{LSL DefineRow||[[collision_start]]|}}
{{LSL DefineRow||[[collision]]|}}
{{LSL DefineRow||[[collision_end]]|}}
|also_tests
|also_tests
|also_articles
|also_articles
|notes
|notes
|permission
|permission
|negative_index
|issues
|sort=PassCollisions
|history=
* Introduction: ?
* Change: {{Jira|SVC-5923}} - Server version 1.40.2 - New {{LSLPT|pass}} value added: 2
|cat1=Collision
|cat1=Collision
|cat2
|cat2=Prim
|cat3
|cat3=Detected
|cat4
|cat4=Passable
}}
}}

Latest revision as of 22:22, 1 January 2016

Summary

Function: llPassCollisions( integer pass );

Sets the pass-collisions prim attribute.

• integer pass PASS_* flag

Whether Collisions are passed to the root prim depends not only on which PASS_* flag is selected, but may also depend on if there is a script that in the prim that handles one of the collision events. For this reason most users will want to use PASS_ALWAYS or PASS_NEVER as they do not have this variable behavior.

The default value for this attribute is PASS_IF_NOT_HANDLED.

pass Constant Value collision Script No collision Script Description
PASS_IF_NOT_HANDLED 0 not passed passed Default: Collisions are passed if there is no script handling the event in the prim.
PASS_ALWAYS 1 passed passed Collisions are always passed to the root.
PASS_NEVER 2 not passed not passed Collisions are never passed to the root.

Caveats

  • Has no known effect if called from within the root prim.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Deep Notes

History

  • Introduction: ?
  • Change: SVC-5923 - Server version 1.40.2 - New pass value added: 2

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)

Signature

function void llPassCollisions( integer pass );