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

◆ PredictiveTakeEntityAsAttachmentEx()

bool Entity::PredictiveTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
inlineprotected

Returns if item can be added as attachment on specific slot. Note that slot index IS NOT slot ID! Slot ID is defined in DZ/data/config.cpp.

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

2001 {
2002 if ( g_Game.IsMultiplayer() )
2003 return GetInventory().TakeEntityAsAttachmentEx(InventoryMode.JUNCTURE, item, slot);
2004 else
2005 return GetInventory().TakeEntityAsAttachmentEx(InventoryMode.PREDICTIVE, item, slot);
2006 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
DayZGame g_Game
Определения DayZGame.c:3942
proto native GameInventory GetInventory()
bool TakeEntityAsAttachmentEx(InventoryMode mode, notnull EntityAI item, int slot)

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