Search Unity

I posted this in the animation forum but i think it may go here

Discussion in 'Audio & Video' started by bobbyrocks, Oct 31, 2016.

  1. bobbyrocks

    bobbyrocks

    Joined:
    Jan 27, 2014
    Posts:
    14
    what I am using right now is the animation substatemachine

    In my substatemachine i have 4 animations to randomly pick one through a script...
    (hold on ill get to my audio question)

    my game character has an audio source attached (i am thinkiing i am going to need 4 audio sources playing different sounds)

    on my animations i have set audio events

    now on my substatemachine

    how exactly can i call the audio for each of my substates if each of them has different audios i want to use for the animations..

    Example of my substates


    animation1 = axe sound
    animation2 = block sound
    animation3= sword swipe sound
    animation4= parry sound

    everytime i press the attack button. it will choose one of the 4...
    please any help would be appreciated because this is about to drive me nuts lol

    heres my youtube channel of what i am explaining where my problem lies.. at the very end of the video.. is the exact question I am looking for