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

◆ PredictiveTakeEntityToTargetAttachmentEx()

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

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

8457 {
8458 Weapon_Base parentWpn = Weapon_Base.Cast(target);
8459 Magazine mag = Magazine.Cast(item);
8460 if (parentWpn && mag)
8461 {
8462 if (target.CanReceiveAttachment(item,slot) && GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8463 return GetWeaponManager().AttachMagazine(mag);
8464
8465 return false;
8466 }
8467 return super.PredictiveTakeEntityToTargetAttachmentEx(target, item,slot);
8468 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1859
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:397

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