Minor bug fix and optimizations
- Fixed timer bug - Changed llGetBoundngBox to llGetObjectMass - Restrict prop cleanup to only include children of non-attached parent objects
This commit is contained in:
parent
4ff281d1f2
commit
56c16cf6bf
1 changed files with 8 additions and 4 deletions
|
@ -90,11 +90,16 @@ state prop
|
|||
{
|
||||
llSetClickAction(CLICK_ACTION_TOUCH);
|
||||
}
|
||||
if(llGetStartParameter())
|
||||
{
|
||||
|
||||
parentkey = llList2String(llGetObjectDetails(llGetKey(), [OBJECT_REZZER_KEY]), 0);
|
||||
if(llGetStartParameter() && !llList2Integer(llGetObjectDetails(parentkey, [OBJECT_ATTACHED_POINT]), 0))
|
||||
{
|
||||
llSetTimerEvent(10);
|
||||
}
|
||||
else
|
||||
{
|
||||
llSetTimerEvent(0);
|
||||
}
|
||||
}
|
||||
|
||||
attach(key id)
|
||||
|
@ -244,8 +249,7 @@ state prop
|
|||
|
||||
timer()
|
||||
{
|
||||
//the parent key should be stored global?
|
||||
if(llGetBoundingBox(parentkey) == [])
|
||||
if(llGetObjectMass(parentkey) == 0)
|
||||
{
|
||||
if(!llGetAttached())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue