Difference between revisions of "LlPassCollisions"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Issues/SVC-3306}}{{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=boolean, if [[TRUE]], collisions are passed from children on to parents
|func=llPassCollisions|p1_type=integer|p1_subtype=pass|p1_name=pass
|func_footnote=The default is [[FALSE]] if there is no script to handle the collision events.
|func_footnote
|func_desc=Sets pass-collisions [[prim]] attribute.
|func_desc=Sets the pass-collisions [[prim]] attribute.
|return_text
|return_text
|spec
|spec
Line 25: Line 26:
|permission
|permission
|issues
|issues
|history=
* Introduction: ?
* Change: {{Jira|SVC-5923}} - Server version 1.40.2 - New {{LSLPT|pass}} value added: 2
|cat1=Collision
|cat1=Collision
|cat2=Prim
|cat2=Prim
|cat3=Detected
|cat3=Detected
|cat4
|cat4=Passable
}}
}}

Latest revision as of 21:22, 1 January 2016

Summary

Function: llPassCollisions( integer pass );
0.0 Forced Delay
10.0 Energy

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.

Examples

See Also

Deep Notes

History

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

Signature

function void llPassCollisions( integer pass );