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

◆ PredictiveTakeEntityToTargetAttachment()

override bool ManBase::PredictiveTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

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

8345 {
8346 Weapon_Base parentWpn = Weapon_Base.Cast(target);
8347 Magazine mag = Magazine.Cast(item);
8348 if (parentWpn && mag)
8349 {
8350 if (GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8351 return GetWeaponManager().AttachMagazine(mag);
8352
8353 return false;
8354 }
8355 return super.PredictiveTakeEntityToTargetAttachment(target, item);
8356 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1859
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:397

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