AmmoUsage.UnloadAmmo
Declaration#
public void UnloadAmmo(bool returnToInventory)Parameters#
| Name | Description |
|---|---|
| returnToInventory | Return old ammo to the inventory |
Description#
Unload any ammo already in the weapon
Usage#
Example
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(GDTKItem item) { AmmoUsage plugin = item.GetPlugin<AmmoUsage>(); plugin.UnloadAmmo(true); }}