741 {
743 {
745 int r_index = player.GetHumanInventory().FindUserReservedLocationIndex(this);
746
747 if (r_index >= 0)
748 {
749 InventoryLocation r_il = new InventoryLocation;
750 player.GetHumanInventory().GetUserReservedLocation(r_index,r_il);
751
752 player.GetHumanInventory().ClearUserReservedLocationAtIndex(r_index);
755 {
756 r_il.
GetParent().GetOnReleaseLock().Invoke(
this);
757 }
759 {
761 }
762
763 }
764
765 player.GetHumanInventory().ClearUserReservedLocation(this);
766 }
767
770 }
InventoryLocationType
types of Inventory Location
ref EffectSound m_LockingSound
proto native EntityAI GetParent()
returns parent of current inventory location
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetType()
returns type of InventoryLocation
proto native CGame GetGame()