DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEItemLocationChanged()

void Entity::EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprotected

См. определение в файле EntityAI.c строка 955

956 {
957 EntityAI old_owner = oldLoc.GetParent();
958 EntityAI new_owner = newLoc.GetParent();
959 OnItemLocationChanged(old_owner, new_owner);
960
961 if (oldLoc.GetType() == InventoryLocationType.ATTACHMENT && newLoc.GetType() == InventoryLocationType.ATTACHMENT)
962 {
963 OnItemAttachmentSlotChanged(oldLoc,newLoc);
964 }
965
966 if (oldLoc.GetType() == InventoryLocationType.ATTACHMENT)
967 {
968 if (old_owner)
969 OnWasDetached(old_owner, oldLoc.GetSlot());
970 else
971 Error("EntityAI::EEItemLocationChanged - detached, but old_owner is null");
972 }
973
974 if (newLoc.GetType() == InventoryLocationType.ATTACHMENT)
975 {
976 if (new_owner)
977 OnWasAttached(newLoc.GetParent(), newLoc.GetSlot());
978 else
979 Error("EntityAI::EEItemLocationChanged - attached, but new_owner is null");
980 }
981
982 if (oldLoc.GetType() == InventoryLocationType.HANDS)
983 {
984 Man.Cast(oldLoc.GetParent()).OnItemInHandsChanged();
985 }
986
987 if (newLoc.GetType() == InventoryLocationType.HANDS)
988 {
989 Man.Cast(newLoc.GetParent()).OnItemInHandsChanged();
990 }
991 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
Определения EntityAI.c:949
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения EntityAI.c:202
void OnWasDetached(EntityAI parent, int slot_id)
Определения EntityAI.c:1779
void OnItemAttachmentSlotChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
Определения EntityAI.c:953
void OnWasAttached(EntityAI parent, int slot_id)
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки EntityAI(), Error(), EntityAI::Man(), OnItemAttachmentSlotChanged(), OnItemLocationChanged(), OnWasAttached() и OnWasDetached().