I'm working on a script to change the cut and and size of a cylinder on a touch. I've managed to get others to rotate, move, change size etc with default state and alternate state with llSetPos and llSetLocalRot.
Where I'm having the problem is llSetPrimitiveParams.
I have a working bit code from the WIKI to tell me the parameters:
llSay(0, (string) llGetPrimitiveParams([PRIM_TYPE]));
This works:
llSetPrimitiveParams([PRIM_SIZE, <1, 1, 1>]);
This does not:
llSetPrimativeParams([PRIM_TYPE, PRIM_TYPE_CYLINDER, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]);
The error received is 'Name not defined within scope'. The error occurs at the end between the ] and the );
This is a direct cut and paste from the WIKI under the Example rule column in the PRIM_TYPE constant table:
[PRIM_TYPE, PRIM_TYPE_CYLINDER, 0, <0.0, 1.0, 0.0>, 0.0, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>]
Any ideas why that occurs there?
Happens to the best of us. 
