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

◆ ActionCondition()

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

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

66 {
67 if (player.IsPlacingLocal() || player.IsPlacingServer())
68 return false;
69
70 //Action not allowed if player has broken legs
71 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
72 return false;
73
74 //gate..
75 if (target.GetObject() && (!target.GetObject().CanUseConstructionBuild() || target.GetObject().CanUseHandConstruction()))
76 return false;
77
78 if ((!GetGame().IsDedicatedServer()))
79 {
80 if (MiscGameplayFunctions.ComplexBuildCollideCheckClient(player, target, item, m_VariantID))
81 {
82 return true;
83 }
84 return false;
85 }
86 return true;
87 }
eBrokenLegs
Определения EBrokenLegs.c:2
int m_VariantID
Определения ActionBase.c:68
proto native CGame GetGame()

Перекрестные ссылки ActionTarget, GetGame() и ActionBase::m_VariantID.