DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
ActionCondition()
override
bool
ActionAttachPowerSourceToPanel::ActionCondition
(
PlayerBase
player
,
ActionTarget
target
,
ItemBase
item
)
inline
private
См. определение в файле
ActionAttachPowerSourceToPanel.c
строка
15
16
{
17
EntityAI
target_entity =
EntityAI
.Cast( target.GetObject() );
18
if
( player && target_entity && item )
19
{
20
if
( target_entity.IsStaticTransmitter() && target_entity.GetInventory().AttachmentCount() == 0 )
//has any power source attachment attached
21
{
22
return
true
;
23
}
24
}
25
26
return
false
;
27
}
EntityAI
class LogManager EntityAI
Перекрестные ссылки
ActionTarget
.
ActionAttachPowerSourceToPanel
Создано системой
1.13.2