Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Somone tell me how to fix this script.

Greg Stewart
Second Life Resident
Join date: 22 Oct 2004
Posts: 8
03-24-2005 07:13
i need a fix in the following script because it gives me (7, 46) :ERROR: Function call mismatches type or number of arguments.

default
{
touch_start(integer on)
{
if(on)
{
llSetPos(<0,0,0> * llGetRootRotation());
llSetRot(<0,0,0> * llGetRootRotation());
}
else
{
llSetPos(<333,0,0> * llGetRootRotation());
llSetRot(<0,0,0> * llGetRootRotation());
}
on = !on;

}

touch_start(integer total_number)
{
llSay(0, "Touched.";);
}
}
Reitsuki Kojima
Witchhunter
Join date: 27 Jan 2004
Posts: 5,328
03-24-2005 07:19
Your mixing your rotations. By default all rotations in LSL are handled by quaternions, which are a four-float variable, not three.
_____________________
I am myself indifferent honest; but yet I could accuse me of such things that it were better my mother had not borne me: I am very proud, revengeful, ambitious, with more offenses at my beck than I have thoughts to put them in, imagination to give them shape, or time to act them in. What should such fellows as I do crawling between earth and heaven? We are arrant knaves, all; believe none of us.