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

◆ ActionCondition()

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

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

33 {
34 EntityAI tgt_entity = EntityAI.Cast( target.GetObject() );
35
36 if ( tgt_entity && BaseBuildingBase.Cast(tgt_entity) &&!tgt_entity.IsBeingPlaced() /*&& BaseBuildingBase.Cast(tgt_entity).IsPlayerInside(player,"")*/ )
37 {
38 string component_name = tgt_entity.GetActionComponentName( target.GetComponentIndex() );
39
40 ItemBase attachment = ItemBase.Cast(tgt_entity.FindAttachmentBySlotName(component_name));
41
42 if ( attachment && player.GetInventory().CanAddEntityIntoHands(attachment) && attachment.IsTakeable() )
43 {
44 return true;
45 }
46 }
47 return false;
48 }
class LogManager EntityAI
void BaseBuildingBase()
Определения BaseBuildingBase.c:1328
class GP5GasMask extends MaskBase ItemBase
override bool IsTakeable()
Определения BaseBuildingBase.c:988

Перекрестные ссылки ActionTarget и ItemBase::IsTakeable().