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

◆ ActionCondition()

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

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

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

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