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

◆ PredictiveTakeEntityToTargetAttachment()

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

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

9045 {
9046 Weapon_Base parentWpn = Weapon_Base.Cast(target);
9047 Magazine mag = Magazine.Cast(item);
9048 if (parentWpn && mag)
9049 {
9050 if (GetWeaponManager().CanAttachMagazine(parentWpn, mag))
9051 return GetWeaponManager().AttachMagazine(mag);
9052
9053 return false;
9054 }
9055 return super.PredictiveTakeEntityToTargetAttachment(target, item);
9056 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:2047
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:398

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