Jump to content

Using a Swordfighting.lsl with animations


Zap Zhong
 Share

You are about to reply to a thread that has been inactive for 3679 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi, I have been building some sword fighting animations and am looking for an easy combat system for an animator like me who is a non scripter type. I found a freebie swordfighting script here:  http://www.free-lsl-scripts.com/freescripts.plx?ID=1185 , but I cant seem to get it to work. I put it in the sword and then get the message "releasing controls" and then nothing happens. Does anyone know how to work the script? I will post this queiiton in the scripting forum as well, but I would appreicate an animators help

Thanks in advance for help offered. Zap

Link to comment
Share on other sites

I really don't know scripting but I am thinking you also need to put the named animations and sounds into Contents of  the sword as well.

I see sound and animation names between the  " " and that usually means you have to have the animations and/or sounds in Contents along with the script  as the script searches for those to use.

I have made vehicles where I have replaced the animation name between the " " in the script with the animation I wanted to use (I also put animation in the contents with the script) and it has worked just fine, so I assume this is the same case.

Keep in mind the name between the  " " has to be exactly the name of the animation you are using. Easiest way to make sure you got it right is to copy the animation name from Properties and paste into the script.

 

Link to comment
Share on other sites

It works OK for me, apart from the annoying error message when you detach it.   That's easily fixed, though, by replacing line 63, 

 

llTakeControls(FALSE, TRUE, TRUE);

 with 

    llReleaseControls();

 That does the same thing, only without the error message.

The script uses built-in animations, so naming stuff isn't an issue.   However, this really means you need to turn your AO off to be sure of it working, since it's trying to play the swordfighting animations at the same time as the normal walking animations triggered by pressing your arrow keys, so the anims in your AO may well be over-riding the "waving your sword about" animations as well as the default walk, if they try to move your arms and upper body as well as your hips and legs.

And you have to have your left mouse button pressed down (and kept down) before you press the arrow keys if you want the swordfight animations to kick in.

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3679 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...