Is there a way to turn off footsteps sound through scripts?

I'm not sure where to find this....

I would like to be able to turn off a player's footsteps sounds to other players in the area if they are doing a particular thing, like sneaking ... but then be able to turn it back on if they aren't in a "sneaking" state anymore. Is this possible? I'm not sure how to access that.