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

◆ TransferItemToVicinity()

override bool AttachmentCategoriesRow::TransferItemToVicinity ( )
inlineprotected

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

148 {
149 if (CanDrop())
150 {
151 ItemBase item = ItemBase.Cast(GetFocusedItem());
152 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
153 SlotsIcon focused_icon = GetFocusedSlotsIcon();
154
155 if (item && !item.IsLockedInSlot() && (focused_icon && !focused_icon.IsOutOfReach()))
156 {
157 if (item.GetTargetQuantityMax() < item.GetQuantity())
158 item.SplitIntoStackMaxClient( null, -1 );
159 else
160 player.PhysicalPredictiveDropItem( item );
161 return true;
162 }
163 }
164 return false;
165 }
class GP5GasMask extends MaskBase ItemBase
PlayerBase GetPlayer()
Определения ModifierBase.c:51
bool IsOutOfReach()
Определения SlotsIcon.c:729
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlayer() и SlotsIcon::IsOutOfReach().