956 {
957 EntityAI old_owner = oldLoc.GetParent();
958 EntityAI new_owner = newLoc.GetParent();
960
962 {
964 }
965
967 {
968 if (old_owner)
970 else
971 Error(
"EntityAI::EEItemLocationChanged - detached, but old_owner is null");
972 }
973
975 {
976 if (new_owner)
978 else
979 Error(
"EntityAI::EEItemLocationChanged - attached, but new_owner is null");
980 }
981
983 {
984 Man.Cast(oldLoc.GetParent()).OnItemInHandsChanged();
985 }
986
988 {
989 Man.Cast(newLoc.GetParent()).OnItemInHandsChanged();
990 }
991 }
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 OnWasAttached(EntityAI parent, int slot_id)
void Error(string err)
Messagebox with error message.