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

◆ ActionCondition()

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

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

71 {
72 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
73 if (vehCommand && !vehCommand.IsTransitioning())
74 {
75 Transport trans = vehCommand.GetTransport();
76 if (trans)
77 {
78 int crewIndex = trans.CrewMemberIndex(player);
79 return crewIndex >= 0 && trans.CrewCanGetThrough(crewIndex) && trans.IsAreaAtDoorFreeDiag(crewIndex);
80 }
81 }
82
83 return false;
84 }
proto native Transport GetTransport()
bool IsTransitioning()
Определения human.c:735

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