20 {
21 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer());
22 InventoryLocation repairIl = new InventoryLocation;
23 InventoryLocation currentIl = new InventoryLocation;
24
26 itemToRepair.GetInventory().GetCurrentInventoryLocation(currentIl);
27
28 if(GameInventory.LocationSyncMoveEntity(currentIl, repairIl))
29 {
31 {
32 player.OnItemInHandsChanged();
33 }
34 return true;
35 }
36 return false;
37 }
InventoryLocationType
types of Inventory Location
proto native void SetTemporary(notnull EntityAI parent, EntityAI e)
proto native int GetType()
returns type of InventoryLocation