751 {
753 {
754 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer());
755 int r_index = player.GetHumanInventory().FindUserReservedLocationIndex(this);
756
757 if (r_index >= 0)
758 {
759 InventoryLocation r_il = new InventoryLocation;
760 player.GetHumanInventory().GetUserReservedLocation(r_index,r_il);
761
762 player.GetHumanInventory().ClearUserReservedLocationAtIndex(r_index);
765 {
766 r_il.
GetParent().GetOnReleaseLock().Invoke(
this);
767 }
769 {
771 }
772
773 }
774
775 player.GetHumanInventory().ClearUserReservedLocation(this);
776 }
777
780 }
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