Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sword Fighting /Sheath-Unsheath Scripts

Ruuji Kuhn
Registered User
Join date: 15 Apr 2007
Posts: 4
04-22-2007 17:15
Please inform me if you are willing to share a swordfighting script preferably for 2 small swords on both hands. Otherwise any scripts will do good help for me to study and learn.

*Optional, if available, a script for unsheathing the 2 swords attached on my back, and sheathing them back in once im finished using them.

Any scripts that may help me do this on my own, or completed scripts will be very appreaciated.

Thanx ahead of time :)
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-22-2007 19:34
You're going to find that most "combat systems" will want to charge you for a developer's kit--if they allow you to develop for the system at all.

If you're just lookin' for damage...then

llSetDamage();

is the right place to look

For sheathing/unsheathing...

llSetAlpha();

is what you're looking for. Essentially...the wielder wears two copies of the item, and one goes 'invisible' when you draw...and the other goes invisible when you sheath.

As far as animations go--that's another subject from scripting ;)
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Ruuji Kuhn
Registered User
Join date: 15 Apr 2007
Posts: 4
04-23-2007 20:04
Thanx Kenn!! you were very helpfull!! :) :) :)

Though, im still not very good at all with scripts, so i know i need to use llSetAlpha, but i dont know how to use it .. LOL