Jump to content
Sign in to follow this  
Jasmin Helstein

Script not following instructions

Recommended Posts

Hello everyone,

I do have a object i want to use as a light. To turn the light on or off I wrote the following functions:

KnipAan()
        {
            llSetPrimitiveParams([
            PRIM_SIZE, <1.5,2.5,2.5>,
            PRIM_POINT_LIGHT, TRUE, <1, 1, 1> *  1, 1, 20, 0.6,
            PRIM_FULLBRIGHT,ALL_SIDES, TRUE,
            PRIM_ALPHA_MODE, ALL_SIDES, PRIM_ALPHA_MODE_MASK, 0,
            PRIM_COLOR, ALL_SIDES, <1.0, 1.0, 1.0>, 1.0,
            PRIM_GLOW, ALL_SIDES, 1.0 
            ]);      
        }

KnipUit()
        {
            llSetPrimitiveParams([
            PRIM_SIZE, <0.5,0.15,0.15>,
            PRIM_POINT_LIGHT, FALSE,
            PRIM_FULLBRIGHT,ALL_SIDES, FALSE,
            PRIM_ALPHA_MODE, ALL_SIDES, PRIM_ALPHA_MODE_MASK, 125,
            PRIM_COLOR, ALL_SIDES, <1.0, 0.522, 0.106>, 1.0,
            PRIM_GLOW, ALL_SIDES, 0.0
            ]); 
        }

The problem is ... KnipAan() seems to work but KnipUit() doesn'do anything except setting the prim's size. Since both functions are identical except for some numbers ...

/me takes a deep breath

I thought it might be a good idea to post it in the forum and see if anyone at least has an idea.

Thanks

Share this post


Link to post
Share on other sites

Top of head, I think PRIM_POINT_LIGHT might need the other paramaters even though you are setting it to FALSE when switching off. Might explain why size changes ok but nothing in the following bits of the command list fire.

Did you get an error about unknown parameters or format at all?

 

 

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...