Jump to content

Prinavu

Resident
  • Posts

    31
  • Joined

  • Last visited

Reputation

6 Neutral

Retained

  • Member Title
    Unicorn Farts

Recent Profile Visitors

429 profile views
  1. Thank you! Sorry they held my comments for moderation. Thank you all again for the help ❤️
  2. It doesn't work, but I think it's because I need to enter a value where the vector is in the llSetLinkPrimitiveParamsFast for the color, I don't know what i should enter thought llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_SPECULAR, ALL_SIDES, texture, repeats, offsets,rotation_in_radians, <0,0,0> HERE , glossiness,environment ]);
  3. I can't wait to know all this simple stuff, thank you so much! Will try it now ❤️
  4. Ok so with some help from this forum i managed to wip something up to make a specular color applier, but now I am stuck on how to fetch a vector color corresponding to the msg received in the listener from my list? I highlighted the area in the script below. vector violet = <1, 1, 0.5>; list colorsList = [<0.00,0.00,0.00>,<1, 1, 0.5>]; setGlossColor(vector color) //Function { integer face; list params = llGetLinkPrimitiveParams(LINK_THIS,[PRIM_SPECULAR, face]); // [string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossiness, integer environment] string texture = llList2String(params,0); vector repeats = llList2Vector(params,1); vector offsets = llList2Vector(params,2); float rotation_in_radians = llList2Float(params,3); vector color = llList2Vector(params,4); integer glossiness = llList2Integer(params,5); integer environment = llList2Integer(params,6); llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_SPECULAR, ALL_SIDES, texture, repeats, offsets,rotation_in_radians, <How do i fetch a vector color corresponding the msg received in the listener from my list?> , glossiness,environment ]); } default { state_entry(){llListen(83458,"",NULL_KEY,"");} listen(integer channel, string name, key id, string msg) { if (llGetOwner() == llGetOwnerKey(id)) if (msg == "Violet") { setGlossColor(<1, 1, 0.5>); } else if (msg == "Test") { } } }
  5. Awesome thank you so much, it's very helpful!
  6. I wanted to know how to fetch the PRIM_SPECULAR values (color, more specifically) to modify it via hud. I am still a bit confused with the constant's parameters.
  7. This is even better than expected lol. Now i can make a "--" version and I have the glossiness system. 😮 Thanks you so much!
  8. Thank you so much for the help guys, im trying both soon ❤️
  9. Ok I have the setup for getting the glossiness attribute (At least i think) But how do I go about using what I fetched to change the glossiness? Or should i open a new thread for this? default { state_entry() { llListen(-16135,"",NULL_KEY,""); ///////////////// // [VARIABLES] // ///////////////// //Making a list getting the prim's paramaters list params = llGetPrimitiveParams([PRIM_SPECULAR]); //Fetching the glossiness parameter in the list (params, index number) integer glossiness = llList2Integer(params, 5); } ///////////// // [LOGIC] // ///////////// listen(integer channel, string name, key id, string msg){ if (llGetOwner() == llGetOwnerKey(id)) if (msg == "10%"){ } else if (msg == "20%"){ } } }
  10. Ah thank you, my brain was not there at all lol!
  11. Hi! Thank you for answering, and what is a SLPPF?
  12. Yeah I thought so. I hope they expand this in the future so that we can edit all attributes. Thank you for your answer.
  13. I needs some help with a snippet, I am trying to make a specular shine controller. For glossiness and one for the environment. I have this part, but I don't want to change the texture, only the glossy params: llSetPrimitiveParams([ PRIM_SPECULAR, ALL_SIDES, "3a97e824-fd26-1d9f-ffe7-00d0264e6631", <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0, <0.275, 0.624, 0.832>, 180, 10]); What param can I enter instead of the uiid to leave the texture untouched?
  14. I had an answer on discord that solved the issue, thank you so much for your help dear
×
×
  • Create New...