Jump to content

bodbuiler65

Resident
  • Posts

    5
  • Joined

  • Last visited

Posts posted by bodbuiler65

  1. 9 hours ago, Nova Convair said:

    Consider to send multiple values in a single message. 

    Example:

    Sender:
    llRegionSayTo(llGetOwner(),-50100,llDumpList2String([8b5fec65-8d8d-9dc5-cda8-8fdf2716e361,8b5fec65-8d8d-9dc5-cda8-8fdf2716e361,8b5fec65-8d8d-9dc5-cda8-8fdf2716e361,51],"|"));
    send everything in one string - values separated by "|"

    Receiver:
    // split up the string
    list p = llParseString2List(msg,["|"],[]);
    string tex1 = llList2String(p,0);
    string tex2 = llList2String(p,1);
    string tex3 = llList2String(p,2);
    integer gloss = llList2Integer(p,3);
    // execute
    llSetLinkPrimitiveParamsFast(LINK_ALL_CHILDREN,[PRIM_TEXTURE,ALL_SIDES,tex1,<1,1,0>,<0,0,0>,0.0,PRIM_NORMAL,ALL_SIDES,tex2,<1,1,0>,<0,0,0>,0.0,PRIM_SPECULAR,ALL_SIDES,tex3,<1,1,0>,<0,0,0>,0.0,<0.5,0.5,0.5>,gloss,0]);

     

    I tried what you said and I get syntax errors in the reciever. I'm still reletively new to lsl so bare with me here. I'm not familiar with llDumpList2String or llParseString2List. There is a good chance that I am using them wrong.

    sender.png

    reciever.png

  2. I'm trying to make a very basic clothing HUD the operates very similarly to an omega applier. A single button that will send texture map, normal map, specular map, and glossiness. I'm using llRegionSayto() to send the UUIDs from the HUD over to the clothing. I'm using llSetLinkPrimitiveParamsFast to set the maps to the clothing. the only problem I'm having right now is being able to set a value for glossiness in the HUD script that will then send over too the clothing script. Any help is greatly appreciated.

     

    Reciever Script

    Screenshot 2021-01-16 224509.png

    HUD Script

    Screenshot 2021-01-16 224544.png

  3. Hey guys,

    I'm trying to script my own clothing hud. I found many ways to get the textures to work. I just haven't found a way to get the bumpiness (normal map) or shinniness (specular map) to work. Any recommendations or resources is welcome.

×
×
  • Create New...