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

◆ ActionCondition()

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

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

32 {
33 if (!target)
34 return false;
35
36 ExplosivesBase explosive = ExplosivesBase.Cast(target.GetObject());
37 if (!explosive)
38 return false;
39
40 if (explosive.IsRuined() || !explosive.GetArmed() || !explosive.CanBeDisarmed())
41 return false;
42
43 if (explosive.GetAttachmentByType(KitchenTimer) || explosive.GetAttachmentByType(AlarmClock_ColorBase))
44 return false;
45
47 if (rdt && rdt.IsConnected())
48 {
49 if (explosive != rdt.GetControlledDevice())
50 return false;
51
52 ExplosivesBase controlledDevice = ExplosivesBase.Cast(rdt.GetControlledDevice());
53 if (controlledDevice && !controlledDevice.IsRuined() && controlledDevice.GetArmed())
54 return true;
55 }
56
57 return false;
58 }
void ExplosivesBase()
Определения ExplosivesBase.c:42
Определения AlarmClock.c:2
Определения KitchenTimer.c:2
EntityAI GetControlledDevice()
Определения RemoteDetonator.c:150
bool IsConnected()
Определения RemoteDetonator.c:145

Перекрестные ссылки ActionTarget, ExplosivesBase(), RemoteDetonatorTrigger::GetControlledDevice() и RemoteDetonatorTrigger::IsConnected().