Jump to content

Major noob I need help ASAP


FULLBLOWNGAMING
 Share

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

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

Recommended Posts

Here is my code...

default
{
    state_entry()
    {
        llLoopSound(llGetInventoryName(f41a5812-371d-d9da-ebfb-c22c57a46765,0), 1.0);
    }
}

I linked this sound into the contents folder on the item and I have tried using the sounds real name "Chainsaw" and i tried chainsaw and i tried chainsaw.wav and yes it is in my inventory too.

Link to comment
Share on other sites

Since it's in your object's inventory, you can do either

       llLoopSound(llGetInventoryName(INVENTORY_SOUND,0), 1.0);

or

       llLoopSound("Chainsaw", 1.0);

Whether it's in the object inventory or not, you can always do

       llLoopSound("f41a5812-371d-d9da-ebfb-c22c57a46765", 1.0);

as well.  The only thing you can't do is

       llLoopSound(llGetInventoryName(f41a5812-371d-d9da-ebfb-c22c57a46765,0), 1.0);

, which makes no sense at all, since you already know its name.  See http://wiki.secondlife.com/wiki/LlGetInventoryName

 ETA:  Notice that it doesn't make any difference whether the asset is in your inventory.  The thing that counts is whether it's in your object's inventory. If it isn't, you cannot use either of the first two options.

Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...