Skip to content

OnHorseLead

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

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

Released under the MIT License.