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

◆ SplitItem()

override bool HandsContainer::SplitItem ( )
inlineprotected

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

213 {
214 if (CanSplit())
215 {
216 if (m_ActiveIndex == 0)
217 {
218 ItemBase item_in_hands = ItemBase.Cast( GetGame().GetPlayer().GetHumanInventory().GetEntityInHands() );
219 if ( item_in_hands )
220 {
221 if ( item_in_hands.CanBeSplit() )
222 {
223 item_in_hands.OnRightClick();
224 }
225 }
226 }
227 else if( GetFocusedContainer() )
228 {
229 return GetFocusedContainer().SplitItem();
230 }
231 }
232 return false;
233 }
class GP5GasMask extends MaskBase ItemBase
PlayerBase GetPlayer()
Определения ModifierBase.c:51
override bool CanBeSplit()
Определения Rag.c:34
proto native CGame GetGame()

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