Jump to content

Script not following instructions


Jasmin Helstein
 Share

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

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

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

Link to comment
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
Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...