These forums are CLOSED. Please visit the new forums HERE
Adding sound on hit. |
|
Sephire Shamen
Registered User
Join date: 22 Mar 2009
Posts: 2
|
01-24-2010 11:04
I'm trying to script a sword to make a sound whenever it attacks a person it makes a slicing metallic sound. can someone give me the command input for this. I've been searching hard.
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
01-24-2010 11:11
llPlaySound("Put the name of your sound here in quotes", 1);
See http://wiki.secondlife.com/wiki/LlPlaySound for more details. That will do the trick. Just be sure to put it in whichever event is likely to trigger it -- I imagine a collision event, probably -- and to put the sound itself in the object's inventory. Your other option, of course, is to use a gesture that triggers your sword animation and the sound. _____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....
![]() Look for my work in XStreetSL at |