Jump to content

color comparision


Lolita Erin
 Share

Recommended Posts

It sounds as if you already know the answer.  llGetLinkPrimitiveParams will yield a list, from which you just grab the parameters you requested.  In this case, you ask

 

list temp = llGetLinkPrimitiveParams(link_no,[PRIM_COLOR,face_no]);vector Color = llList2Vector(temp,0);if (Color == <1.0,1.0,1.0>){    llSay(0,"I'm RED!");}// And so forth

 The only trick, of course is that if your color is even slightly off of pure red, the test will fail.  So a darker red <0.9,0.9,0.9> will not work.  You just have to be careful.

 

Link to comment
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.

 Share

×
×
  • Create New...