This is probably very simple for some of you, but I can't get it to work. The following script resizes and moves a prim - the problem I have with it is that the script needs to know the starting position of the prim:
CODE
vector smallpos = <56.000, 28.000, 32.000>;
vector largepos = <56.000, 28.000, 33.000>;
integer TouchSW;
default
{
touch_start(integer total_number)
{
if(!TouchSW)
{
while(llVecDist(llGetPos(), smallpos) != 0)
{
llSetPos(smallpos);
}
llSetScale(<.380, 0.010, 0.200>);
}
else
{
while(llVecDist(llGetPos(), largepos) != 0)
{
llSetPos(largepos);
}
llSetScale(<3.8, 0.010, 2.800>);
}
TouchSW = !TouchSW;
}
}
Can anybody help me make it so that the script *gets* the local position of the prim and then does the rest, so it doesn;t have to be manually entered into the script itself?
Thanks in advance
DG