Skip to content

OnHorseHitch

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnHorseHitch( RidableHorse horse, HitchSpot hitch )
{
    Puts( "OnHorseHitch works!" );
}

Location

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

Released under the MIT License.