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

◆ ActionCondition()

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

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

30 {
31 //Action not allowed if player has broken legs
32 if ( player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS )
33 return false;
34
35 if (!CfgGameplayHandler.GetDisableColdAreaPlacementCheck() && player.GetInColdArea())
36 return false;
37
38 GardenPlot targetPlot = GardenPlot.Cast( target.GetObject() );
39
40 if ( targetPlot && !player.IsPlacingLocal() )
41 return true;
42 else
43 return false;
44 }
eBrokenLegs
Определения EBrokenLegs.c:2

Перекрестные ссылки ActionTarget и CfgGameplayHandler::GetDisableColdAreaPlacementCheck().