'No overload for method' when attatching fmod event to animation event

Im trying to apply an FMOD playoneshot script to a Unity animation event and I am getting this error message:

Assets/Sample Assets/2D/Scripts/Playersounds.cs(9,36): error CS1501: No overload for method PlayOneShot' takes1’ arguments

my code is

using UnityEngine;
using System.Collections;

public class Playersounds : MonoBehaviour {

	public void PlayerFootsteps ()			//this is a method called PlayerFootsteps. this is called when the program starts
	
	{
	FMOD_StudioSystem.instance.PlayOneShot("event:/PLayerSteps");
	}
}
using UnityEngine;
using System.Collections;

public class Playersounds : MonoBehaviour {

    public void PlayerFootsteps () 
    {
        FMOD_StudioSystem.instance.PlayOneShot("event:/PLayerSteps", transform.position);
    }
}
1 Like

Thanks Nicholas (y)