LlVolumeDetect

From Second Life Wiki

(Redirected from LSL llVolumeDetect)
Jump to: navigation, search

Contents

Description

Function: llVolumeDetect( integer detect );
248 Function ID
0.0 Delay
10.0 Energy

If detect is TRUE, object becomes phantom but triggers collision_start and collision_end events when other objects start and stop interpenetrating.

• integer detect TRUE enables, FALSE disables

Caveats

  • Does not work on attachments.
  • Only detects physical objects. -- This might be a bug
  • Can only be applied to the root prim. -- This is probably a bug.

Examples

default
{
    state_entry()
    {
        llVolumeDetect(TRUE); // Starts llVolumeDetect
    }
    collision_start(integer total_number)
    {
        llSay(0, "Detected!"); // Tells you when something penetrates the prim
    }
}

See Also

Events

•  collision_start
•  collision
•  collision_end

Functions

•  llPassCollisions
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools