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

◆ PredictiveTakeEntityToTargetAttachmentEx()

override bool ManBase::PredictiveTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
inlineprotected

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

8707 {
8708 Weapon_Base parentWpn = Weapon_Base.Cast(target);
8709 Magazine mag = Magazine.Cast(item);
8710 if (parentWpn && mag)
8711 {
8712 if (target.CanReceiveAttachment(item,slot) && GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8713 return GetWeaponManager().AttachMagazine(mag);
8714
8715 return false;
8716 }
8717 return super.PredictiveTakeEntityToTargetAttachmentEx(target, item,slot);
8718 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1989
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:398

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