Skip to content

OnHorseLead

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • BaseRidableAnimal::RPC_Lead(BaseEntity/RPCMessage msg)
csharp
//---
	bool flag = msg.read.Bit();
	if (arg_36_0 == flag)
	{
		return;
	}
	if (Interface.CallHook("OnHorseLead", this, player) != null)
	{
		return;
	}
	this.SetLeading(flag ? player : null);
	this.LeadingChanged();
//---

Released under the MIT License.