DayZ 1.29
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 строка 1522

1523 {
1524 EntityAI att = GetInventory().FindAttachment(slot);
1525 if(att)
1526 return att.CanBeCombined(e, true, stack_max_limit);
1527 return false;
1528 }
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().