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

◆ ActionCondition()

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

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

17 {
18 HumanCommandVehicle vehCmd = player.GetCommand_Vehicle();
19 if (vehCmd && vehCmd.GetVehicleSeat() == DayZPlayerConstants.VEHICLESEAT_DRIVER)
20 {
21 Transport trans = vehCmd.GetTransport();
22 if (trans)
23 {
24 Car car;
25 if (Class.CastTo(car, trans) && car.EngineIsOn())
26 {
27 return car.GetSpeedometerAbsolute() <= 8;
28 }
29 }
30 }
31
32 return false;
33 }
proto native Transport GetTransport()
proto native int GetVehicleSeat()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

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