Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

primparam problems

Keiko Doji
Registered User
Join date: 30 Jul 2006
Posts: 23
05-30-2008 17:39
hi all

im trying to make a simple sliding door that when toched slides open.

im using a sphere

size
x : 5.0
y : 5.0
z : 5.0

Path cut
B : 0.000 E: 0.500

hollow : 95

dimple :
B : 0.500 E : 0.800

what i cant seem to understand is how to use a script to change the shape and size of the door. i want to end up with the above measurements but where it has path cut, i want it to be
path cut
B : 0.000 E : 0.100

i've tried looking up onthe wiki and to be honest i cant understand the examples. i know it has something to do with llGetPrimitiveParams and llSetPrimitiveParams but i cant seem to work out how to do it.


any help would be appriecated

thanks all
Cryas Tokhes
Great Googley Moogley...
Join date: 8 Feb 2006
Posts: 124
05-30-2008 18:31
Hmmm... lets see if I can wing this one...

Your normal position would be...
llSetPrimitiveParams([
PRIM_SIZE, <5.0, 5.0, 5.0>,
PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0.0, 0.5, 0.0>, 95.0, <0.0, 0.0, 0.0>, <0.5, 0.8, 0.0>]);

Your final position would be...
llSetPrimitiveParams([
PRIM_SIZE, <5.0, 5.0, 5.0>,
PRIM_TYPE, PRIM_TYPE_SPHERE, 0, <0.0, 0.1, 0.0>, 95.0, <0.0, 0.0, 0.0>, <0.5, 0.8, 0.0>]);

Meh, this may work... worth a try, didnt test it.
Keiko Doji
Registered User
Join date: 30 Jul 2006
Posts: 23
05-30-2008 19:27
thanks, that worked perfectly