Search Unity

Headbobber with Footstep Sounds?

Discussion in 'Scripting' started by Keehan, Aug 18, 2012.

  1. Keehan

    Keehan

    Joined:
    Aug 18, 2012
    Posts:
    26
    So ive basically applied the Headbobber script (http://wiki.unity3d.com/index.php?title=Headbobber) to the Standard FPS Controller. Now I was wondering how I could get the footsteps to be in sync with the headbobber? Ive been trying for ages but dont have a clue :(

    If you knew how to do it, I would appretiate an answer :)
    I am a begginner at Unity.
     
  2. ultraviol3nt

    ultraviol3nt

    Joined:
    Jan 17, 2010
    Posts:
    155
    You could use a height variable as a trigger. Anytime the height of the camera falls below a designated point, then the footstep audio is played.