Jump to content

Vengeance Villota

Resident
  • Posts

    36
  • Joined

  • Last visited

Everything posted by Vengeance Villota

  1. How do you get a sword to engage it's stand animation when the left mouse button is pressed and to disengage when it is let go?
  2. Now if i can just get the left mouse button thing to work I'll be all set. Mine goes right into its stand right away and stays that way. Most don't go into the stand unless holding down the left mouse key. Which is how i'd like mine to be.
  3. actually I managed to figure this one out on my own . default { state_entry() { llListen(1,"",llGetOwner(),""); } on_rez(integer message) { llResetScript(); } listen(integer channel, string name, key id, string message) { if(llToLower(message) == "draw") llSetAlpha(0.0,ALL_SIDES); llSleep(1.5); // Side note: Sleep timer. This little command helps us keep the weapon shown for an amount of time before it's actually sheathing. Depends on your sheath animation and your sheath sound. If you do not need it, leave it on '0.0' if(llToLower(message) == "sheath") llSetAlpha(1.0,ALL_SIDES); } } Thank you very much for the help. I've been working on this for a week sadly lol. I am very new to scripts.
  4. oh great thanks. Now how would I add a delay timer for when it sheaths?
  5. So I have mostly everything else done for my Katana and one of the only thing holding me back from posting it on marketplace is this sheath issue I am having. I got it to disappear correctly when I draw the sword but it's not reappearing when I sheath it. Here's the script which I put in the part(s) I want to disappaer that I am using: default { state_entry() { llListen(1,"",llGetOwner(),""); } on_rez(integer message) { llResetScript(); } listen(integer channel, string name, key id, string message) { if(llToLower(message) == "draw") llSetAlpha(0.0,ALL_SIDES); if(llToLower(message) == "Sheath") llSetAlpha(1.0,ALL_SIDES); } } And another question. What line do I have to place in the melee script for it to only use the "stand" animation when holding the left mouse button? My swords go into "stand" right when they are drawn. If someone could IM me in game to discuss this that would be great. I bought the script and don't feel comfortable posting someone elses work here.
×
×
  • Create New...