Difference between revisions of "LlVolumeDetect"

From Second Life Wiki
Jump to navigation Jump to search
(<lsl> example)
Line 10: Line 10:
*Only detects physical objects
*Only detects physical objects
|constants
|constants
|examples=<pre>
|examples=<lsl>// by Cory Bjornson
// by Cory Bjornson


default
default
Line 24: Line 23:
llSay(0, "Detected!"); // Tells you when something penetrates the prim
llSay(0, "Detected!"); // Tells you when something penetrates the prim
}
}
}
}</lsl>
</pre>
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 22:53, 24 January 2008

Summary

Function: llVolumeDetect( integer detect );

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

• integer detect

Caveats

  • Must be applied to the root prim.
  • Does not work on attachments.
  • Only detects physical objects
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>// by Cory Bjornson

default { state_entry() { llVolumeDetect(TRUE); // Starts llVolumeDetect llSetStatus(STATUS_PHANTOM, TRUE); // Makes the Prim Phantom } collision(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

Search JIRA for related Issues

Signature

function void llVolumeDetect( integer detect );