660 {
662 {
664 int r_index = player.GetHumanInventory().FindUserReservedLocationIndex(this);
665
666 if (r_index >= 0)
667 {
669 player.GetHumanInventory().GetUserReservedLocation(r_index,r_il);
670
671 player.GetHumanInventory().ClearUserReservedLocationAtIndex(r_index);
674 {
675 r_il.
GetParent().GetOnReleaseLock().Invoke(
this);
676 }
678 {
680 }
681
682 }
683
684 player.GetHumanInventory().ClearUserReservedLocation(this);
685 }
686
689 }
InventoryLocationType
types of Inventory Location
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
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Manager class for managing Effect (EffectParticle, EffectSound)