Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

lSetPrimitiveParams type error

Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
03-22-2008 12:58
ive been having this probum, it works but i get a error about the type of prim i tryed adding it and i still get the same errors any ideas?

CODE

vector offset = <0,0,1.99611>;
integer oc;

default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}

touch_start(integer total_number)
{
if(oc == TRUE)
{

llSetPos(llGetPos()-offset);
llSetPrimitiveParams([PRIM_SIZE,<4.947922, 0.017273, 4.458298>,1]);
oc = FALSE;
}
else if(oc == FALSE)
{
llSetPrimitiveParams([PRIM_SIZE,<4.947922, 0.017273, 0.380974>,1]);
llSetPos(llGetPos()+offset);
oc = TRUE;
}
}
}
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
03-22-2008 15:52
From: Mrc Homewood
ive been having this probum, it works but i get a error about the type of prim i tryed adding it and i still get the same errors any ideas?

CODE

vector offset = <0,0,1.99611>;
integer oc;

default
{
state_entry()
{
llSay(0, "Hello, Avatar!");
}

touch_start(integer total_number)
{
if(oc == TRUE)
{

llSetPos(llGetPos()-offset);
llSetPrimitiveParams([PRIM_SIZE,<4.947922, 0.017273, 4.458298>,1]);

Try getting rid of the ',1' in this line and in the next one.