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

◆ CanCombineAttachment()

bool Entity::CanCombineAttachment ( notnull EntityAI e,
int slot,
bool stack_max_limit = false )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1550

1551 {
1552 EntityAI att = GetInventory().FindAttachment(slot);
1553 if(att)
1554 return att.CanBeCombined(e, true, stack_max_limit);
1555 return false;
1556 }
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)

Перекрестные ссылки EntityAI() и GetInventory().