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

◆ ActionCondition()

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

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

4 {
5 EntityAI targetEntity = EntityAI.Cast(target.GetObject());
6 if (targetEntity && !GardenBase.Cast(targetEntity) && item)
7 {
8 return targetEntity.GetInventory() && targetEntity.GetInventory().CanAddAttachment(item) && !targetEntity.CanUseConstruction());
9 }
10
11 return false;
12 }
class LogManager EntityAI

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