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

◆ PredictiveTakeEntityToCargo()

bool Entity::PredictiveTakeEntityToCargo ( notnull EntityAI item)
inlineprotected

Put item into into cargo.

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

1897 {
1898 if ( GetGame().IsMultiplayer() )
1899 return GetInventory().TakeEntityToCargo(InventoryMode.JUNCTURE, item);
1900 else
1901 return GetInventory().TakeEntityToCargo(InventoryMode.PREDICTIVE, item);
1902 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native GameInventory GetInventory()
bool TakeEntityToCargo(InventoryMode mode, notnull EntityAI item)
moves item to cargo of this intentory
proto native CGame GetGame()

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