1269 {
1270 super.EEDelete(parent);
1272 if (player)
1273 {
1275
1276 if (player.IsAlive())
1277 {
1278 int r_index = player.GetHumanInventory().FindUserReservedLocationIndex(this);
1279 if (r_index >= 0)
1280 {
1282 player.GetHumanInventory().GetUserReservedLocation(r_index,r_il);
1283
1284 player.GetHumanInventory().ClearUserReservedLocationAtIndex(r_index);
1287 {
1288 r_il.
GetParent().GetOnReleaseLock().Invoke(
this);
1289 }
1291 {
1292 r_il.
GetParent().GetOnAttachmentReleaseLock().Invoke(
this, r_il.
GetSlot());
1293 }
1294
1295 }
1296
1297 player.RemoveQuickBarEntityShortcut(this);
1298 }
1299 }
1300 }
InventoryLocationType
types of Inventory Location
void OnInventoryExit(Man player)
Event called on item when it is removed from the player(Man) inventory, passes the old owner as a par...
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