OnAmmoUnload
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnAmmoUnload( BaseProjectile component, Item item, BasePlayer player )
{
Puts( "OnAmmoUnload works!" );
}
Location
- BaseProjectile::UnloadAmmo(Item item, BasePlayer player)
csharp
//---
BaseProjectile component = item.GetHeldEntity().GetComponent<BaseProjectile>();
if (!component.canUnloadAmmo)
{
return;
}
if (Interface.CallHook("OnAmmoUnload", component, item, player) != null)
{
return;
}
if (component)
{
//---