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

◆ PredictiveTakeEntityToInventory()

bool Entity::PredictiveTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

Put item anywhere into this entity (as attachment or into cargo, recursively)

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

1864 {
1865 if ( GetGame().IsMultiplayer() )
1866 return GetInventory().TakeEntityToInventory(InventoryMode.JUNCTURE, flags, item);
1867 else
1868 return GetInventory().TakeEntityToInventory(InventoryMode.PREDICTIVE, flags, item);
1869 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native GameInventory GetInventory()
bool TakeEntityToInventory(InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item)
Put item anywhere into this entity (as attachment or into cargo, recursively)
proto native CGame GetGame()

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