How would I make an AI that could hear players footsteps?

I’m trying to make my AI hear the player’s footsteps everytime they walk, or run. How would I achieve this?

Would I have to use playback loudness? and if so, could you give an example?

Why not just check to see if the player is walking or running, rather than ‘hearing’ their footsteps?

2 Likes

Building off of what @Scottifly said, you can also check if the player is close enough to the NPC before it begins whatever it will do.

I don’t know if you can “hear” the player footsteps. You could check if the player is in a specific range, and if so, check the state of the character (running or walking).

Could possibly be the answer; I’ll try and see the results

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.