Changes

103 bytes added ,  22:41, 18 October 2021
Added more context to the localSoundAt example
Line 48: Line 48:  
// that are close to the player.
 
// that are close to the player.
 
// This is some of the code used for the running sounds, played while riding on a horse.
 
// This is some of the code used for the running sounds, played while riding on a horse.
if (step_type == "Wood")
+
public virtual void PerformDefaultHorseFootstep(string step_type)
 
{
 
{
     if (this.rider.ShouldHandleAnimationSound())
+
     // ...
 +
    if (step_type == "Wood")
 
     {
 
     {
         this.rider.currentLocation.localSoundAt("woodyStep", base.getTileLocation());
+
         if (this.rider.ShouldHandleAnimationSound())
    }
+
        {
 +
            this.rider.currentLocation.localSoundAt("woodyStep", base.getTileLocation());
 +
        }
 
     // ...
 
     // ...
 
</syntaxhighlight>
 
</syntaxhighlight>
41

edits