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

◆ ActionCondition()

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

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

21 {
22 EntityAI target_EAI = EntityAI.Cast( target.GetObject() );
23 string selection = target_EAI.GetActionComponentName(target.GetComponentIndex());
24
25 if ( selection == "sparkplug" && target_EAI.GetInventory().CanAddAttachment(item) )
26 {
27 return true;
28 }
29
30 return false;
31 }
class LogManager EntityAI

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