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

◆ ActionCondition()

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

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

69 {
70 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
71 if (vehCommand)
72 {
73 Transport trans = vehCommand.GetTransport();
74 if (trans)
75 {
76 int crewIndex = trans.CrewMemberIndex(player);
77 return crewIndex >= 0 && trans.CrewCanGetThrough(crewIndex) && trans.IsAreaAtDoorFree(crewIndex);
78 }
79 }
80
81 return false;
82 }
proto native Transport GetTransport()
override bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Определения Car.c:102

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