2514 {
2515 GameInventory inventory = GetInventory();
2516 if ( !isVital || !inventory )
2517 return;
2518
2520
2521 if (!item || item.IsRuined())
2522 {
2523 EngineStop();
2524 }
2525 }
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)