Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Touch to Draw (weapons) Methods

Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
08-16-2007 10:41
heyas;

i want to make some touch-to-draw weapons --non-scripted weapons, just for show, if that makes any difference. from what i can tell, there are two ways to do it

1: have a copy of the weapon inside the sheath object, then spawn the weapon when touched and have it attach to the hand (or wherever). the prims that make up the hilt of the sheathed model also turn transparent. then, when the weapon is dropped, it is deleted, and the sheathed 'hilt' turn back opaque.


2: wear the visible sheathed weapon and an invisible drawn weapon on the hand. at touch, communicate between the two to get them to switch invisible states.



so my question is, which is the best way, if there is such a thing. alternately, what are the pros and cons of each? i kinda like having no listeners, but have no clue how to spawn and attach something. also i understand if you're on no-build land, you can't spawn the thing to glom onto your hand.

thoughts?
_____________________
Why Johnny Can't Rotate:
http://forums.secondlife.com/showthread.php?t=94705
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
08-16-2007 11:29
I tend to favor the invis/worn method for a few reasons. The first is that the object often consists of mannnny prims and textures. Rezzing it can be an exercise in grey goo and lag. The second is that drawing and attaching would require you to displace whatever is worn in hand already which could be confusing or unintended. I have a sword that works with the invis way, and a shotgun that works by rezzing.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
08-16-2007 20:13
I agree with Shadow. The holster + invis version generally works out much better.
_____________________
--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.
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
08-17-2007 07:38
heyas;

great, thanks guys! and this is the way i already know how to do :)