llVolumeDetect
Revision as of 13:54, 29 October 2008 by Strife Onizuka (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llVolumeDetect( integer detect );248 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
If detect is TRUE, VolumeDetect is enabled, physical object and avatars can pass through the object. This works much like Phantom, but unlike Phantom, VolumeDetect objects trigger collision_start and collision_end events when interpenetrating.
• integer | detect | – | TRUE enables, FALSE disables |
Caveats
- VolumeDetect objects will fall through the ground, whereas Phantom objects will not.
- Does not work on attachments.
- Only detects physical objects and avatars.
- Can only be applied to the root prim.
- llDetectedLinkNumber will not return a reliable result in collision events of VolumeDetect objects.
Examples
<lsl>default {
state_entry() { llVolumeDetect(TRUE); // Starts llVolumeDetect } collision_start(integer total_number) { llSay(0, "Detected!"); // Tells you when something penetrates the prim }}</lsl>