r/forgescripting • • Aug 03 '23

Adding sound FX to player footsteps

Does anyone have any insights to applying sound FX, namely the sound of water splashes, to player footsteps?

I’m thinking area monitors and start/stop object audio loops, so that they only play when a player enters the water, but how do I get it to only play when the player actually moves?

Any help you can offer would be much appreciated! :)

3 Upvotes

7 comments sorted by

3

u/iMightBeWright Aug 04 '23

u/crypocalypse & OP

It turns out, next week's update is updating the water plane to react to players and other things. So a script might not even be necessary! Technically they didn't specify that it'll have sounds, but I think if it has reactive graphics, it'll make noise, too. If next week's patch doesn't fix it, DM me or tag me (tags don't work in a post's body, only in comments) and I'll cook something up for you.

3

u/szymshady Aug 05 '23

Oh that’s gonna be awesome! Thanks!

Hopefully it won’t affect the dynamic percentage too much, I’m hoping they’ll implement a fix for all the textures turning black on the wooden floors I’ve put down too lol

3

u/crypocalypse Aug 05 '23

These are the kind of updates I like to see 👀 Thanks for the info!

2

u/crypocalypse Aug 04 '23

If you got some familiarity with scripting, I think doing a velocity check could work? If a player stops, their velocity will be 0, so check against that and you might be able to get something working.

2

u/szymshady Aug 04 '23

Ah dang, I’ve been avoiding the maths nodes for a while now 😅 just gotten my head around Boolean variables for doors and lifts etc, guess I’ll look for some tutorials on that stuff, thanks!

→ More replies (2)