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

◆ ActionCondition()

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

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

65 {
66 EntityAI target_entity = EntityAI.Cast( target.GetObject() );
67 if( !item.CanSwitchDuringAttach(target_entity) )
68 return false;
69
70 if ( target_entity && item )
71 {
72 if ( target_entity.GetInventory() && target_entity.GetInventory().CanAddAttachment( item ) )
73 {
74 return true;
75 }
76 }
77 return false;
78 }
class LogManager EntityAI

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