Skip to content

OnInventoryAmmoFind

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnInventoryAmmoFind( PlayerInventory instance, List`1 list, AmmoTypes ammoType )
{
    Puts( "OnInventoryAmmoFind works!" );
}

Location

  • PlayerInventory::FindAmmo(System.Collections.Generic.List`1<Item> list, Rust.AmmoTypes ammoType)
csharp
public void FindAmmo(List<Item> list, AmmoTypes ammoType)
{
	if (Interface.CallHook("OnInventoryAmmoFind", this, list, ammoType) != null)
	{
		return;
	}
	ItemContainer expr_1C = this.containerMain;
	if (expr_1C != null)
//---

Released under the MIT License.