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

◆ ActionCondition()

static bool ActionCarHornBase::ActionCondition ( PlayerBase player)
inlinestaticprivate

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

5 {
6 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
7
8 if (vehCommand)
9 {
10 Transport trans = vehCommand.GetTransport();
11 if (trans)
12 {
13 if (!PlayerIsDriver(trans, player))
14 {
15 return false;
16 }
17
18 CarScript car;
19 if (Class.CastTo(car, trans))
20 {
21 return BatteryIsVital(car.GetBattery());
22 }
23 }
24 }
25
26 return false;
27 }
static bool PlayerIsDriver(Transport trans, PlayerBase player)
Определения ActionCarHorn.c:40
static bool BatteryIsVital(ItemBase battery)
Определения ActionCarHorn.c:45
proto native Transport GetTransport()

Перекрестные ссылки BatteryIsVital(), Class::CastTo(), HumanCommandVehicle::GetTransport() и PlayerIsDriver().

Используется в ActionCarHornShort::ActionCondition() и ActionCondition().