Skip to content

OnHorseLead

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnHorseLead( RidableHorse instance, BasePlayer player )
{
    Puts( "OnHorseLead works!" );
}

Location

  • RidableHorse::SERVER_Lead(BaseEntity/RPCMessage msg)
csharp
//---
	}
	else if (!this.CanStopLead(player))
	{
		return;
	}
	if (Interface.CallHook("OnHorseLead", this, player) != null)
	{
		return;
	}
	this.SetLeading(flag ? player : null);
}

Released under the MIT License.