Jump to content

llSetPrimitiveParams script errors on light cone


Pazzo Pestana
 Share

You are about to reply to a thread that has been inactive for 4279 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I have a cone (cylinder) tapered to form a light beam with a gradient texture.  When I rez it, I get the following script errors:

llSetPrimitiveParams error running rule #2: unknown rule.
llSetPrimitiveParams error running rule #2: missing prim type.

Here is the script:

default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_TEXTURE,1,TEXTURE_TRANSPARENT,<1,1,0>,<0,0,0>,0,FALSE]);
                   
    }
    
    link_message(integer sender_num, integer num, string str, key id)
    {
        if(str=="stop")
        {
           llSetPrimitiveParams([PRIM_TEXTURE,1,TEXTURE_TRANSPARENT,<1,1,0>,<0,0,0>,0,FALSE]);
        }
        if(str=="start")
        {
           llSetPrimitiveParams([PRIM_TEXTURE,1,"f6e8ad3b-8fd8-adc3-a839-aee816b4c13c",<1,1,0>,<0,0,0>,0,TRUE]);
        }
    }
}

I'm trying to apply the texture to the outside of the cylinder (face 1, I think).  I can't figure out what "rule #2" is - the integer or the string.  Also, I don't identify the prim type and wonder if that is part of the problem.

Thanks!

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4279 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...