Skip to content

OnRidableAnimalClaim

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • BaseRidableAnimal::RPC_Claim(BaseEntity/RPCMessage msg)
csharp
//---
	Item item = this.GetPurchaseToken(player, tokenItemID);
	if (item == null)
	{
		return;
	}
	if (Interface.CallHook("OnRidableAnimalClaim", this, player, item) != null)
	{
		return;
	}
	base.SetFlag(BaseEntity.Flags.Reserved2, false, false, true);
	this.OnClaimedWithToken(item);
//---

Released under the MIT License.