Answered
0
0

Hi,
I am sound designer not programmer and i need Yor help. I am adding footsteps to 3rd person character.
I made simple script in Java and put it into animation events as function. It works very well.
http://imgur.com/a/JDIPV

What i need is someone to help me with adding “random pitch function” to my script.

Also is there a tut how to do it with FMOD? Viking Villiage shows only 1st person character

thanks

  • Cameron Baron

    What do you mean by adding “random pitch function”.
    Are you using the pitch control in Studio at all?

  • You must to post comments
Best Answer
0
0

Hi
I found answer, this is tut showing 3 person character animation events:
https://www.youtube.com/watch?v=qN5lj9QT6Ws
This function allows to use FMOD event in “Animation events”:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Footsteps : MonoBehaviour {

// Use this for initialization
void PlaySound(string path)
    {
    FMODUnity.RuntimeManager.PlayOneShot(path, GetComponent<Transform> ().position);
    }

// Update is called once per frame
void Update () {

}

}

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.