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

◆ RepairCondition()

bool ActionRepairPart::RepairCondition ( PlayerBase player,
ActionTarget target,
ItemBase item,
bool camera_check )
inlineprotected

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

197 {
198 string zone_name;
199 EntityAI ent = EntityAI.Cast(target.GetObject());
200
201 if (ent && ent.CanUseConstruction())
202 {
203 ConstructionBase construction = ConstructionBase.Cast(ent.GetConstructionBasic());
204 array<string> compNames = new array<string>();
205 ent.GetActionComponentNameList(target.GetComponentIndex(), compNames);
206 foreach (string partName : compNames)
207 {
208 if (construction.IsPartConstructed(partName))
209 return construction.CanRepairPart(partName, item, player, camera_check);
210 }
211 }
212
213 return false;
214 }
class LogManager EntityAI
void ConstructionBase(EntityAI parent)
Определения ConstructionBase.c:58

Перекрестные ссылки ActionTarget() и ConstructionBase().

Используется в ActionCondition() и ActionConditionContinue().