Skip to content

OnHorseHitch

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnHorseHitch( IHitchable hitchable, HitchSpot spot )
{
    Puts( "OnHorseHitch works!" );
}

Location

  • HitchTrough::AttemptToHitch(HitchTrough/IHitchable hitchable, HitchTrough/HitchSpot spot)
csharp
//---
	}
	if (spot == null)
	{
		return false;
	}
	object returnvar = Interface.CallHook("OnHorseHitch", hitchable, spot);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	spot.SetOccupiedBy(hitchable);
//---

Released under the MIT License.