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

◆ CoverHeadOfTargetPlayerLambda()

void CoverHeadOfTargetPlayerLambda::CoverHeadOfTargetPlayerLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )
inlineprivate

См. определение в файле ActionCoverHeadTarget.c строка 65

66 {
67 m_TargetPlayer = player;
68
69 InventoryLocation targetAtt = new InventoryLocation;
70 targetAtt.SetAttachment(m_TargetPlayer, NULL, InventorySlots.HEADGEAR);
71 OverrideNewLocation(targetAtt);
72 }
PlayerBase m_TargetPlayer
Определения ActionCoverHeadTarget.c:63
proto native void SetAttachment(notnull EntityAI parent, EntityAI e, int slotId)
sets current inventory location type to Attachment with slot id set to <slotId>

Перекрестные ссылки m_TargetPlayer и InventoryLocation::SetAttachment().