OnHorseHitch
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? OnHorseHitch( HitchTrough.IHitchable hitchable, HitchTrough.HitchSpot spot )
{
Puts( "OnHorseHitch works!" );
return null;
}Location
- HitchTrough::AttemptToHitch(HitchTrough.IHitchable hitchable, HitchTrough.HitchSpot spot)
csharp
//---
spot = GetClosestSpot(baseEntity.transform.position);
}
}
if (spot != null)
{
object obj = Interface.CallHook("OnHorseHitch", hitchable, spot);
if (obj is bool)
{
return (bool)obj;
}
spot.SetOccupiedBy(hitchable);
//---