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

◆ ActionCondition()

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

См. определение в файле ActionStopEngineBoat.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 return false;
24
25 Boat boat = Boat.Cast(trans);
26 if (boat && boat.EngineIsOn())
27 return true;
28 }
29
30 return false;
31 }
proto native Transport GetTransport()
proto native int GetVehicleSeat()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

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