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

◆ ActionCondition()

static bool ActionCarHornBase::ActionCondition ( PlayerBase player)
inlinestaticprivate

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

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

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

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