OnHorseUnhitch
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnHorseUnhitch( HitchTrough.IHitchable hitchable, HitchTrough.HitchSpot hitchSpot )
{
Puts( "OnHorseUnhitch works!" );
return null;
}Location
- HitchTrough::UnHitch(HitchTrough.IHitchable hitchable)
csharp
//---
HitchSpot[] array = hitchSpots;
foreach (HitchSpot hitchSpot in array)
{
if (hitchSpot.GetHitchable(base.isServer) == hitchable)
{
if (Interface.CallHook("OnHorseUnhitch", hitchable, hitchSpot) != null)
{
break;
}
hitchSpot.SetOccupiedBy(null);
hitchable.SetHitch(null, null);
//---