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

◆ ActionCondition()

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

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

35 {
36 TerritoryFlag totem = TerritoryFlag.Cast( target.GetObject() );
37 if (!totem)
38 {
39 return false;
40 }
41
42 float state = totem.GetAnimationPhase("flag_mast");
43 if ( totem.FindAttachmentBySlotName("Material_FPole_Flag") && state < 1 )
44 {
45 return true;
46 }
47 return false;
48 }

Перекрестные ссылки ActionTarget.