Like <tt>localSoundAt</tt>, this method can be used to play sounds spatially, and will adjust the played sound's volume and position based on its proximity from the player. A player will not hear any sound played from this method if the provided position is off-screen:
+
Like <tt>localSoundAt</tt>, this method can be used to play sounds spatially, and will adjust the played sound's volume and position based on its proximity from a nearby player. A player will not hear any sound played from this method if the provided position is off-screen:
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
// The sound code for when Clint is metalworking in the Blacksmith.
// The sound code for when Clint is metalworking in the Blacksmith.