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

◆ ActionCondition()

override bool FirearmActionLoadMultiBullet::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

27 {
28 if (!super.ActionCondition( player, target, item ))
29 return false;
30
31 Weapon_Base wpn = Weapon_Base.Cast(item);
32 Magazine mag = Magazine.Cast(target.GetObject());
33 return mag && player.GetWeaponManager().CanLoadMultipleBullet(wpn,mag);
34 }

Перекрестные ссылки ActionTarget.