Jump to content

Need help with a lamp script that triggers one face number


MSTRPLN
 Share

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

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

Recommended Posts

Hello, i'm cofused about this one.

I'm making a wall lamp which i would want to be ablle to turn on/off when clicked (anywhere) but since this is one mesh/prim with 3 textures i want it to only change the "glow" settings of one face, and additionally the light toggle which i think would only be able to emmit on the whole mesh.

Ingame mesh:



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Inside 3ds max:



i know that the face off the glass that i want to change is 2 and i know of the "PRIM_GLOW" existence but i dont know how exactly to change "ALL_SIDES" to just one side, any help would be really appreciated.

Sincerely

Link to comment
Share on other sites

It's even a bit easier than stated above.

 

llSetPrimitiveParams([PRIM_GLOW, 2, intensity]);

... will work if the script is in the object with the target face.  Also if you need to know what face it is edit the object, select the face you want to know, then hold <SHIFT><CONTROL><ALT> + T and the face number will be displayed in chat.

 

Link to comment
Share on other sites

The reason I use llSetLinkPrimitiveParamsFast(LINK_THIS,[....]) rather than llSetPrimitiveParams is that llSetLinkPPFast doesn't carry the 0.2 second delay that llSetPP does.

Admittedly that's probably not an issue in this example, but I now always use llSetLinkPPFast unless I actually intend to sleep the script for 0.2 seconds (which, in this case, I don't).

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2134 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...