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

◆ ActionCondition()

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

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

47 {
48 if ( player.IsPlacingLocal() )
49 return false;
50
51 HescoBox hesco;
52 if ( Class.CastTo(hesco,target.GetObject()) )
53 {
54 if ( hesco.CanBeFilledAtPosition( player.GetPosition() ) )
55 {
56 if ( hesco.GetState() == HescoBox.UNFOLDED )
57 {
59 return true;
60 }
61 else if( hesco.GetState() == HescoBox.FILLED)
62 {
64 return true;
65 }
66 }
67 }
68
69 return false;
70 }
int m_ActionState
Определения ActionFillObject.c:11
const int EMPTY
Определения ActionFillObject.c:13
const int FILLED
Определения ActionFillObject.c:14

Перекрестные ссылки ActionTarget, Class::CastTo(), EMPTY, FILLED и m_ActionState.