Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Swords (Drawing and Sheathing)

Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
02-13-2008 12:28
I'm sure many have seen this being done a lot in the RP sims.

I'm really interested as to how to actually do those scripts for drawing and sheathing your sword.

Everyone I have asked usually gives me scripts that I can't even access to learn from.

Really interested if anyone could help me out please.

~Genesis Ronmark
_____________________
Mitzy Shino
can i haz ur stufz?
Join date: 15 Dec 2006
Posts: 409
02-13-2008 18:08
It's pretty simple actually.

When the script is called to draw the sword, it merely plays an animation that makes it looks like the sword is being drawn and at the same time turns the sword (already held in their hand) visible. Better scripts will also make the hilt in the scabbard disappear.

To sheath it, merely reverse the process.

The waving the sword around and slashing at things is merely playing animations in response to key presses of course.
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
02-13-2008 18:21
thank you ^^ but one thing still bothers me, I can't seem to get the held sword to become invisible until activated with "draw"
_____________________
Mitzy Shino
can i haz ur stufz?
Join date: 15 Dec 2006
Posts: 409
02-13-2008 21:32
In your script add a set primitive params function to turn it invisible in the onrez event (I think that will work - I'm still new to scripts)

I'll see what I have in world and send you an example of a usable script if I have one. (with mod so you can actually see it)
Genesis Ronmark
Registered User
Join date: 14 Aug 2007
Posts: 42
02-15-2008 20:35
that would be great if you have n_n and I'm just testing out other things too, like particles, same idea; only res when drawn, but it still goes when sheathed too >:I
_____________________