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

◆ PredictiveTakeToDst()

bool Entity::PredictiveTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
inlineprotected

См. определение в файле 3_Game/Entities/EntityAI.c строка 2008

2009 {
2010 if ( GetGame().IsMultiplayer() )
2011 return GetInventory().TakeToDst(InventoryMode.JUNCTURE, src, dst);
2012 else
2013 return GetInventory().TakeToDst(InventoryMode.PREDICTIVE, src, dst);
2014 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native GameInventory GetInventory()
bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
move src to dst
proto native CGame GetGame()

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