SimplyMilk Posted January 19, 2013 Share Posted January 19, 2013 I'm trying to make something so that when someone bumps into me, a sound is played, as well as when part of my outfit is clicked, the sound plays.The bump triggered sound is the important part, though.Thanks to anyone who helps <3 Link to comment Share on other sites More sharing options...
Ela Talaj Posted January 19, 2013 Share Posted January 19, 2013 You can trigger a sound on "bump" but you cannot trigger a gesture. There is no LSL method to start /stop a gesture Link to comment Share on other sites More sharing options...
SimplyMilk Posted January 19, 2013 Author Share Posted January 19, 2013 That's exactly what I'm trying to do, yes. I just want a sound to play when someone knocks into me. Link to comment Share on other sites More sharing options...
Xiija Posted January 20, 2013 Share Posted January 20, 2013 kinda like this? default{ touch_start(integer num) { llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1.0); } collision_start(integer total_number) { integer type = llDetectedType(0); if (type & AGENT_BY_LEGACY_NAME ) llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1.0); }} Link to comment Share on other sites More sharing options...
SimplyMilk Posted January 20, 2013 Author Share Posted January 20, 2013 Yes, exactly that. But how do I associate it with a specific sound file? Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 20, 2013 Share Posted January 20, 2013 That's what llGetIventoryName(INVENTORY_SOUND,0) does. That says, "Use the first sound (alphabetically) in this object's contents." If you'd rather not do that, because you have more than one sound there or because you want to play a sound that you reference by its UUID, just name it directly. llPlaySound("Buffalo_snort",1.0); or llPlaySound("a822ff2b-ff02-461d-b45d-dcd10a2de0c2",1.0); The LSL wiki is your friend >>> https://wiki.secondlife.com/wiki/LlPlaySound Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now