Jump to content

Peires

Resident
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Peires

  1. Thanks so much for replying! I changed that line to llSetLinkPrimitiveParams(LINK_THIS, [PRIM_TEXTURE, 1, llGetSubString(msg,0,-1)]);, and didn't get any syntax errors, but when I pressed the corresponding button on the HUD, I received this error message: [20:00] llSetPrimitiveParams error running rule #1 (PRIM_TEXTURE): arg #3 (texture repeat) is missing. {RootName bitty head scripted, RootPosition { 74.0711, 89.0714, 3096.12 }}
  2. Hi! So I'm making a product that relies on texture changing via a HUD. However, I've run into a problem with the script that I'm using. My mesh consists of several linked objects, but for some reason my mesh has two face 1s. Because of this, the script changes both of those faces, even though they're two completely different faces that use different textures and are on two different linked objects. Here is the script that's in both linked objects: integer ch=(number); default { state_entry() { llListen(ch,"",NULL_KEY,""); } listen(integer channel, string name, key id, string msg) { if (llGetOwner() == llGetOwnerKey(id)) { llSetTexture(llGetSubString(msg,0,-1),1); } } } I believe incorporating llSetLinkTexture(LINK_THIS, could fix this problem, but I've tried adding it into the script (I'm honestly not too sure where to add it, so I've tried different places in the script) but I only get syntax errors. Where could I add this into the script (if this is indeed what would make the script do what I would like it to) and still have the script compatible with the HUD? Would I also need to add this into the HUD script?
  3. Hello! I'm currently working on a mesh head, but running into a few difficulties. I need the eyelids and eyelashes to blink at the same time, but the eyelashes are separate from the eyelids; they are linked to the the head. Because of this, putting a script in both of them separately would cause them to blink at different times. I have a simple alpha animation script, but putting it in either of them makes all linked objects disappear except for the object the script is in. I have no experience with scripting (I've been getting all of my scripts from the library and forums) so I'm not sure how to go about this. I also have a working HUD for customization, but the final step is to have the eyelid state buttons work. The head also has blush, tears, eyebrows, teeth, and a tongue. Ideally, I would like to have all of the objects linked together but I don't have any idea how to script it to have it work that way.
×
×
  • Create New...