SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: How To Add Sounds To Items?

Results 1 to 1 of 1
  1. #1
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Nov 2009
    Location
    Ontario, Canada
    Posts
    136

    How To Add Sounds To Items?

    Solved, read edit.
    Still need help figuring out this issue.


    I've got my item semi-working in-game (See here to know why it's only 'semi').
    Other then the problem from my other thread, I can't seem to get a sound to work on the item.
    I created an .ogg file in the shared\sounds\items folder, but it didn't work.
    In my items item.entity file do I need to add a line:
    Code:
    sound="Item_CoolItem"
    Or something like that?

    This is starting to make me a little :madm:.


    EDIT: For others who may encounter this problem, the sound has to do with the state.effect file.
    For my potion, all I added was this:
    Code:
    <sound
                linearfalloff="true"
                falloffstart="0"
                falloffend="2200"
                volume=".7"
                sample="/shared/sounds/items/YOURSOUND"
            />
    Obviously replacing YOURSOUND with the filename of the sound you want.
    Last edited by WolfieeifloW; 02-07-2011 at 02:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •