5 [
Attribute(
"4",
desc:
"Amount of magazines the action will ensure are in the inventory (fill to this amount)")]
6 private int m_MagazineQuantityInInventory;
10 if (selectedEntity ==
null || selectedEntity.GetEntityType() !=
EEditableEntityType.CHARACTER)
19 ChimeraCharacter character = ChimeraCharacter.Cast(selectedEntity.GetOwner());
24 SCR_InventoryStorageManagerComponent inventoryManager = SCR_InventoryStorageManagerComponent.Cast(character.FindComponent(SCR_InventoryStorageManagerComponent));
25 if (!inventoryManager)
28 return inventoryManager.IsResupplyMagazinesAvailable(m_MagazineQuantityInInventory);
33 ChimeraCharacter character = ChimeraCharacter.Cast(selectedEntity.GetOwner());
37 SCR_InventoryStorageManagerComponent inventoryManager = SCR_InventoryStorageManagerComponent.Cast(character.FindComponent(SCR_InventoryStorageManagerComponent));
38 if (!inventoryManager)
41 inventoryManager.ResupplyMagazines(m_MagazineQuantityInInventory);