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

◆ ActionCondition()

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

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

33 {
34 Object targetObject = target.GetObject();
35 if (targetObject)
36 {
37 TIntArray componentIndices = new TIntArray();
38 targetObject.GetActionComponentsForSelectionName(targetObject.GetViewGeometryLevel(), UAMisc.LIQUID_SOURCE_SELECTION, componentIndices);
39 if (componentIndices.Count() > 0 && componentIndices.Find(target.GetComponentIndex()) == -1)
40 return false;
41 }
42
43 return player.HasBloodyHands() && !player.GetItemInHands() && targetObject && (targetObject.GetWaterSourceObjectType() != EWaterSourceObjectType.NONE || targetObject.IsWell()) && !player.GetItemOnSlot("Gloves");
44 }
EWaterSourceObjectType
Определения EWaterSourceObjectType.c:2
Определения ObjectTyped.c:2
const string LIQUID_SOURCE_SELECTION
Определения ActionConstants.c:180
Определения ActionConstants.c:176
array< int > TIntArray
Определения EnScript.c:733

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