I want to make a prim you click on get as large as the prim behind it, then when you click it again, the prim gets smaller. I want the larger and smaller action of the prim to be scaleable with the back board prim, this is what I have so far, what else do I need? integer on = TRUE;
default
{
touch_start(integer total_number)
{
if(on == TRUE)
{
llSetScale(llGetScale()+<2.82,0,1.7>);
llSetPos(llGetLocalPos()+<.45,0.01,-.8>);
on=FALSE;
}
else if(on == FALSE)
{
llSetScale(llGetScale()-<2.82,0,1.7>);
llSetPos(llGetLocalPos()-<.45,.01,-.8>);
on=TRUE;
}
}
}