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

◆ PredictiveTakeEntityToTargetAttachment()

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

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

8443 {
8444 Weapon_Base parentWpn = Weapon_Base.Cast(target);
8445 Magazine mag = Magazine.Cast(item);
8446 if (parentWpn && mag)
8447 {
8448 if (GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8449 return GetWeaponManager().AttachMagazine(mag);
8450
8451 return false;
8452 }
8453 return super.PredictiveTakeEntityToTargetAttachment(target, item);
8454 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1859
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:397

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