Difference between revisions of "LlVolumeDetect"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL_Function/boolean|detect}}
{{Issues/SVC-2996}}{{LSL_Function/boolean|detect}}
{{LSL_Function
{{LSL_Function
|func_id=248|func_sleep=0.0|func_energy=10.0
|func_id=248|func_sleep=0.0|func_energy=10.0
Line 12: Line 12:
*Only detects physical objects and avatars.
*Only detects physical objects and avatars.
*Can only be applied to the root prim.
*Can only be applied to the root prim.
*[[llDetectedLinkNumber]] will not return a reliable result in {{LSLGC|Collision|collision}} events of VolumeDetect objects.
|constants
|constants
|examples=<lsl>default
|examples=<lsl>default

Revision as of 14:06, 29 October 2008

Summary

Function: llVolumeDetect( integer detect );
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

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>

See Also

Events

•  collision_start
•  collision
•  collision_end

Functions

•  llPassCollisions

Deep Notes

Signature

function void llVolumeDetect( integer detect );