Difference between revisions of "LlVolumeDetect"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Gally Young (talk | contribs) m (multi lang) |
Gally Young (talk | contribs) m (fixe) |
||
Line 1: | Line 1: | ||
{{LSL_Function | |||
|func_id=248|func_sleep=0.0|func_energy=10.0 | |func_id=248|func_sleep=0.0|func_energy=10.0 | ||
|func=llVolumeDetect|p1_type=integer|p1_name=detect | |func=llVolumeDetect|p1_type=integer|p1_name=detect |
Revision as of 13:30, 29 January 2008
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, 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
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>