llVolumeDetect

From Second Life Wiki
Revision as of 17:36, 11 October 2007 by Cory Bjornson (talk | contribs)
Jump to navigation Jump to search

Summary

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

// 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
	}
}

See Also

Events

•  collision_start
•  collision
•  collision_end

Functions

•  llPassCollisions

Deep Notes

Signature

function void llVolumeDetect( integer detect );