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
//---
}
if (spot == null)
{
return false;
}
object returnvar = Interface.CallHook("OnHorseHitch", hitchable, spot);
if (returnvar is bool)
{
return (bool)returnvar;
}
spot.SetOccupiedBy(hitchable);
//---