Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linked animation error.

Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
06-14-2006 23:10
I get this error:
From: someone
Window1: llSetPrimitiveParams error running rule #2 (PRIM_ROTATION): arg #1 quaternion expected but vector given.


With this script:
CODE
default
{

link_message(integer sender_num, integer num, string message, key id)
{
if(message=="t1")
{
llSetPrimitiveParams([PRIM_POSITION,<-4.75000, -9.99940, 10.00000>,PRIM_ROTATION,<0.00000, 0.00000, 0.00000> / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot())]);

}
if(message=="t2")
{
llSetPrimitiveParams([PRIM_POSITION,<-4.50000, -9.99940, 0.25000>,PRIM_ROTATION,<0.00000, 0.00000, 0.00000, 1.00000> / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot())]);

}

}
}


Eh? :confused:
_____________________
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
06-14-2006 23:24
Your error is here:

CODE
llSetPrimitiveParams([PRIM_POSITION,<-4.75000, -9.99940, 10.00000>,PRIM_ROTATION,<0.00000, 0.00000, 0.00000> / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot())]);


you have a vector there, instead of a quantran, your missing one more float argument, should read

CODE
llSetPrimitiveParams([PRIM_POSITION,<-4.75000, -9.99940, 10.00000>,PRIM_ROTATION,<0.00000, 0.00000, 0.00000, 1.0> / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot())]);


That shoudl fix it :)
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
06-14-2006 23:31
From: Lazink Maeterlinck
Your error is here:

CODE
llSetPrimitiveParams([PRIM_POSITION,<-4.75000, -9.99940, 10.00000>,PRIM_ROTATION,<0.00000, 0.00000, 0.00000> / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot())]);


you have a vector there, instead of a quantran, your missing one more float argument, should read

CODE
llSetPrimitiveParams([PRIM_POSITION,<-4.75000, -9.99940, 10.00000>,PRIM_ROTATION,<0.00000, 0.00000, 0.00000, 1.0> / ( (ZERO_ROTATION / llGetLocalRot()) * llGetRot())]);


That shoudl fix it :)

AH! Thank you!
:)
_____________________