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

◆ ActionCondition()

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

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

17 {
18 Object targetObject = target.GetObject();
19 Object targetParent = target.GetParent();
20 EntityAI target_entity = EntityAI.Cast( targetParent );
21 EntityAI item_entity = item;
22
23 if ( targetParent )
24 {
25 if ( target_entity && item_entity )
26 {
27 if ( target_entity.GetInventory() && target_entity.GetInventory().CanAddAttachment( item_entity ) )
28 {
29 return true;
30 }
31 }
32 }
33
34 return false;
35 }
class LogManager EntityAI
class LOD Object

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