OnMagazineReload
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnMagazineReload( BaseProjectile instance, IAmmoContainer ammoSource, BasePlayer GetOwnerPlayer() )
{
Puts( "OnMagazineReload works!" );
}
Location
- BaseProjectile::TryReloadMagazine(IAmmoContainer ammoSource, int desiredAmount)
csharp
public virtual bool TryReloadMagazine(IAmmoContainer ammoSource, int desiredAmount = -1)
{
object returnvar = Interface.CallHook("OnMagazineReload", this, ammoSource, this.GetOwnerPlayer());
if (returnvar is bool)
{
return (bool)returnvar;
}
if (!this.TryReload(ammoSource, desiredAmount, true))
//---