Thank you for your reply. Sorry about the code i didn't dee the add code button.
Is this better
default
{
state_entry()
{
llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); // get permission to take controls
}
run_time_permissions(integer perm)
{ // permissions dialog answered
if (perm & PERMISSION_TAKE_CONTROLS)
{ // we got a yes
llTakeControls(CONTROL_UP | CONTROL_DOWN, TRUE, FALSE); // take up and down controls
}
}
control(key id, integer held, integer change)
{ // something happened to one of our controls
if (held & CONTROL_UP)
{
integer link = 1;
llSetPrimitiveParams(link[PRIM_SIZE, <0.0,0.0,1.0>]);
}
else if (change & held & CONTROL_DOWN)
{
integer link = 1;
llSetPrimitiveParams(link[PRIM_SIZE, <0.0,0.0,7.0>]);
}
}
}