OsVolumeDetect

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
 
}
 
}
 
</source>
 
</source>
|description= If script is on roof prim, it is like llVolumeDetect(). On child prims, it will turn that prim a detector.
+
|description= If script is on roof prim, it is like llVolumeDetect(). On child prims, it will turn just that prim a detector.
|additional_info=This function was added in 0.9.0.1}}
+
|additional_info= This function was added in 0.9.0.1
 +
Note that like with llVolumeDetect, the name Volume is misleading. Detection will only be by volume on some basic shapes like pure spheres or pure boxes. On other shapes it will only be by surface collisions. What prims will do by volume or surface, depends on the physics engine
 +
 
 +
}}

Revision as of 09:10, 6 November 2019

osVolumeDetect(integer detect)
If script is on roof prim, it is like llVolumeDetect(). On child prims, it will turn just that prim a detector.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Delay 0 seconds
Example(s)
// Example of osVolumeDetect
 
default
{
    state_entry()
    {
        ...
    }
}
Notes
This function was added in 0.9.0.1

Note that like with llVolumeDetect, the name Volume is misleading. Detection will only be by volume on some basic shapes like pure spheres or pure boxes. On other shapes it will only be by surface collisions. What prims will do by volume or surface, depends on the physics engine


Personal tools
General
About This Wiki