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

◆ PredictiveTakeEntityToTargetAttachmentEx()

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

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

1977 {
1978 if ( GetGame().IsMultiplayer() )
1979 return GetInventory().TakeEntityAsTargetAttachmentEx(InventoryMode.JUNCTURE, target, item, slot);
1980 else
1981 return GetInventory().TakeEntityAsTargetAttachmentEx(InventoryMode.PREDICTIVE, target, item, slot);
1982 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native GameInventory GetInventory()
bool TakeEntityAsTargetAttachmentEx(InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot)
put item as attachment of target
proto native CGame GetGame()

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