llGetMass() not working in script in child prim after rez until script is recompiled.
Create physical object with 2 prims
Create Script in physical object.
Insert in child prim
touch_start(integer total_number)
{ llOwnerSay((string)llGetMass());
}
Compile, then touch object.
Script will say mass of object. (e.g. [15:58] Object: 3.450869)
Take object into inventory.
Rez.
Touch object
Script says – [15:59] Object: 0.010000
Recompile Script. Script will return proper mass. (Rinse then repeat).
This is easily duplicated (in Havok4).
Take same object into Havok1 Sim ,
Script will give proper mass when object is rezzed.
THIS SEEMS TO ONLY WORK WHEN THE SCRIPT IS IN A CHILD PRIM. NOT THE ROOT OR SINGLE PRIM.