977 {
978 EntityAI oldOwner = oldLoc.GetParent();
979 EntityAI newOwner = newLoc.GetParent();
981
984
987
989 {
990 if (oldOwner)
992 else
993 Error(
"EntityAI::EEItemLocationChanged - detached, but oldOwner is null");
994 }
995
997 {
998 if (newOwner)
1000 else
1001 Error(
"EntityAI::EEItemLocationChanged - attached, but newOwner is null");
1002 }
1003
1004 Man player;
1006 {
1007 player = Man.Cast(oldOwner);
1008 player.OnItemInHandsChanged();
1009 player.GetCachedEquipment().OnItemCargoOut(this);
1010 }
1011
1013 {
1014 player = Man.Cast(newOwner);
1015 player.OnItemInHandsChanged();
1016 player.GetCachedEquipment().OnItemCargoIn(this);
1017 }
1018 }
InventoryLocationType
types of Inventory Location
void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
void OnWasDetached(EntityAI parent, int slot_id)
void OnItemAttachmentSlotChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void NotifyPlayerLoadChanged(EntityAI owner)
void OnWasAttached(EntityAI parent, int slot_id)
void Error(string err)
Messagebox with error message.