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

◆ PredictiveTakeToDst()

override bool EntityAI::PredictiveTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
inlineprotected

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

829 {
830 if (!ScriptInputUserData.CanStoreInputUserData())
831 {
832 Print("[inv] " + GetSimulationTimeStamp() + " Man@" + this + " ::PredictiveTakeToDst input data not sent yet, cannot allow another input action");
833 return false;
834 }
835
836 if (NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
837 return JunctureTakeToDst(src, dst);
838 else
839 return TakeToDstImpl(InventoryMode.PREDICTIVE, src, dst);
840 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
bool JunctureTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
to dst juncture
Определения 3_Game/Entities/Man.c:823
bool TakeToDstImpl(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
Определения 3_Game/Entities/Man.c:852
bool NeedInventoryJunctureFromServer(notnull EntityAI item, EntityAI currParent, EntityAI newParent)
Определения 3_Game/Entities/Man.c:155
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), JunctureTakeToDst(), NeedInventoryJunctureFromServer(), Print() и TakeToDstImpl().