|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
02-26-2008 01:53
I have some prims linked that i want to shrink down and pull themselves into the rootprim on touch and return to the original position upon touching it again ........ and also wondering if im able to shrink the prims down to .010 as the smallest ive been able to is .500 even with changing the float heres what i have so far can someone please help me and add into the script what i need .... heres the script float scale = 2; // You can change this scale value here.
vector OriginalSize; integer TouchSW;
default { state_entry() { OriginalSize = llGetScale(); } touch_start(integer total_number) { if(!TouchSW) { llSetScale(OriginalSize * scale); } else { llSetScale(OriginalSize); } TouchSW = !TouchSW; } }
|
|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
02-26-2008 07:39
Your script seems to work fine with a cube. If you're having trouble shrinking it down to 0.01, my guess is you're testing it on an object that has different dimensions. If it is a box that's 0.25 x 0.25 x 0.5, for example, and you set scale to 0.02, it won't shrink the z value below 0.02, of course.
|
|
RaveWolf Strauss
Registered User
Join date: 1 Jan 2006
Posts: 53
|
02-27-2008 21:43
No i rezzed a cube and sutck the script in it to shrink it down to .010 m and for some reason it wont go down that far plus im wanting it to hide itself inside the rootprim ....... never said the script didnt work jus cant see why it wont shrink a jus rezzed cube down to .010.....
|
|
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
|
03-03-2008 07:25
Your script shrunk my cube down to 0.01 without any problems. No idea why it isn't working at your end.
|