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

◆ ActionCondition()

override bool ActionWetClothingInHandsWell::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

19 {
20 if (!item || !item.IsClothing())
21 return false;
22
23 if (item.GetWet() >= item.GetWetMax())
24 return false;
25
26 Object targetObject = target.GetObject();
27 if (targetObject)
28 {
29 TIntArray componentIndices = new TIntArray();
30 targetObject.GetActionComponentsForSelectionName(targetObject.GetViewGeometryLevel(), UAMisc.LIQUID_SOURCE_SELECTION, componentIndices);
31
32 if (componentIndices.Count() > 0 && componentIndices.Find(target.GetComponentIndex()) == -1)
33 return false;
34 }
35
36 return true;
37 }
class LOD Object
array< int > TIntArray
Определения EnScript.c:733

Перекрестные ссылки ActionTarget(), ItemBase::IsClothing() и UAMisc::LIQUID_SOURCE_SELECTION.