Jump to content

Bump triggered gesture help


SimplyMilk
 Share

You are about to reply to a thread that has been inactive for 3659 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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

You are about to reply to a thread that has been inactive for 3659 days.

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
 Share

×
×
  • Create New...