llPassCollisions
void llPassCollisions(integer Pass)Configures how collision events are passed to scripts in the linkset.
If Pass == TRUE, collisions involving collision-handling scripted child prims are also passed on to the root prim. If Pass == FALSE (default behavior), such collisions will only trigger events in the affected child prim.
Parameters
-
Pass(integer) - Boolean, if TRUE, collisions are passed from children on to parents.
default { collision_start(integer num_detected) { // Enable collision pass-through for child prims llPassCollisions(TRUE); llSay(0, "Collision pass-through enabled"); }}- By default (
Pass= FALSE), collisions are only reported in the script of the prim that actually collided - When
Passis set to TRUE, collisions involving child prims with collision handlers will also be passed to the root prim’s scripts - Useful in linked object scenarios where you want the root prim to be aware of collisions happening to any part of the linkset
- This function affects how collision events (
collision_start,collision,collision_end) are propagated through the linkset
See Also
Section titled “See Also”- llPassTouches - Pass touch events to parent prim
- llCollisionFilter - Filter which objects trigger collision events
- llCollisionSound - Control collision sounds
- llCollisionSprite - Control collision sprites
- llVolumeDetect - Make prim volume-detect