default
{
touch_start(integer total_number)
{
llSetPos (,x,y,z);
}
}
Where XYZ are coordinates fairly close to the child prim (within 10m). Also..
llSetPos(variablename);
seems to fail. But
llSetPos(llGetLocalPos() + <0,0,1>
;Seems to work fine.
This is giving me problems with this particualr script....
--------------------------------------------------------------------------------------------------------
float targetdonations = 1000.0;
float currentdonations;
float percentagefilled;
float fillerlength;
integer i;
default
{
link_message(integer sender_num, integer num, string str, key id){
currentdonations = (float)num;
percentagefilled = ((currentdonations/targetdonations)*100);
fillerlength = (percentagefilled*0.1);
llSay (0,"current position "+(string)llGetPos());
vector newpos = (llGetRootPosition() + <0,0,fillerlength/2>
;llSay (0,"new position "+(string)newpos);
llSetScale(<0.5, 0.5, fillerlength>
; llSetPos(newpos);
}
}
--------------------------------------------------------------------------------------------------------Through the Debug messages, I have confirmed that all the calculations work perfectly. But the prim does NOT move to the new location when llSetPos is called. Even though the location is definately NOT it's current one.
This is driving me crazy. Is there a bug at work here, or am i doing something wrong?
WarKirby
Got to see what's up with my scaling also.