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

◆ PredictiveTakeEntityToTargetAttachmentEx()

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

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

8359 {
8360 Weapon_Base parentWpn = Weapon_Base.Cast(target);
8361 Magazine mag = Magazine.Cast(item);
8362 if (parentWpn && mag)
8363 {
8364 if (target.CanReceiveAttachment(item,slot) && GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8365 return GetWeaponManager().AttachMagazine(mag);
8366
8367 return false;
8368 }
8369 return super.PredictiveTakeEntityToTargetAttachmentEx(target, item,slot);
8370 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1859
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:397

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