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

◆ PredictiveTakeEntityToTargetAttachment()

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

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

8693 {
8694 Weapon_Base parentWpn = Weapon_Base.Cast(target);
8695 Magazine mag = Magazine.Cast(item);
8696 if (parentWpn && mag)
8697 {
8698 if (GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8699 return GetWeaponManager().AttachMagazine(mag);
8700
8701 return false;
8702 }
8703 return super.PredictiveTakeEntityToTargetAttachment(target, item);
8704 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1989
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:398

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