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

◆ ActionCondition()

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

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

11 {
12 Object target_object = target.GetObject();
13 if ( player && target_object && target_object.IsStaticTransmitter() )
14 {
15 EntityAI target_entity = EntityAI.Cast( target_object );
16 string selection = target_object.GetActionComponentName( target.GetComponentIndex() );
17
18 if ( target_entity.HasEnergyManager() && target_entity.GetCompEM().CanSwitchOff() && selection == "power_panel" )
19 {
20 AdvancedCommunication transmitter = AdvancedCommunication.Cast( target_object );
21 //transmitter.DisplayRadioInfo( "ON", player );
22
23 return true;
24 }
25 }
26
27 return false;
28 }
class LogManager EntityAI
void AdvancedCommunication()
Определения AdvancedCommunication.c:140
class LOD Object

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