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

◆ PredictiveTakeEntityToTargetAttachmentEx()

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

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

9059 {
9060 Weapon_Base parentWpn = Weapon_Base.Cast(target);
9061 Magazine mag = Magazine.Cast(item);
9062 if (parentWpn && mag)
9063 {
9064 if (target.CanReceiveAttachment(item,slot) && GetWeaponManager().CanAttachMagazine(parentWpn, mag))
9065 return GetWeaponManager().AttachMagazine(mag);
9066
9067 return false;
9068 }
9069 return super.PredictiveTakeEntityToTargetAttachmentEx(target, item,slot);
9070 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:2047
bool AttachMagazine(Magazine mag, ActionBase control_action=NULL)
Определения WeaponManager.c:398

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