|
Smoke Carter
Registered SCOTTISH User
Join date: 29 Apr 2007
Posts: 31
|
04-11-2008 02:59
I need a very simple Draw/Sheath sword script, full perms. I am making a William Wallace Avatar for the shop and would like to include this in the claymore. Let it be known I know more about the planet pluto than scripting. Is there somewhere I can simply download the script and put it in the sword and sheath? I know it makes one disappear and the other appear.....but how to do it? I have no shimmer. Thank you for your help!!!!
|
|
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
|
04-11-2008 09:36
There are probably several ways of doing this, but the one I've seen is to change the visibility of the objects. The easy way to do this is with llSetAlpha, flipping between 0.0 and 1.0 for the alpha, and using ALL_SIDES.
You still need a mechanism for the user to cause the draw or sheath actions. The implementation of this depends on whether you want the user to be able to type the command, click on the object to change state, or click on the object to bring up a dialog.
The first is simplest. Simply use llListen to listen for the specific command from the owner, preferably on a channel other than the default channel. Channel 1 would be fine for this, e.g. the user could type /1 draw /1 sheath
|