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

◆ ActionCondition()

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

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

110 {
111 //Action not allowed if player has broken legs
112 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
113 return false;
114
115 if (target.GetObject() && !target.GetObject().CanUseConstructionBuild())
116 return false;
117 if ( player.IsPlacingLocal() || player.IsPlacingServer() )
118 return false;
119
120 if ( (!g_Game.IsDedicatedServer()) )
121 {
122 if ( MiscGameplayFunctions.ComplexBuildCollideCheckClient(player, target, item, m_VariantID ) )
123 {
124 return true;
125 }
126 return false;
127 }
128 return true;
129 }
int m_VariantID
Определения ActionBase.c:67
DayZGame g_Game
Определения DayZGame.c:4074
eBrokenLegs
Определения EBrokenLegs.c:2

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