24 {
25 CarScript car = null;
26 string animSource = "";
27
29 if (player && player.GetCommand_Vehicle())
30 {
31 if (Class.CastTo(car, player.GetCommand_Vehicle().GetTransport()))
32 {
33 int crewIdx = car.CrewMemberIndex(player);
34
36 if (crewIdx < 0 || crewIdx > car.CrewSize() || car.
GetCarDoorsState(car.GetDoorInvSlotNameFromSeatPos(crewIdx)) ==
CarDoorState.DOORS_MISSING)
37 {
38 return false;
39 }
40
42
45 {
46 return false;
47 }
48
49 int safeCrewIdx = crewIdx % 4;
51
52 float animationPhaseInside = car.GetAnimationPhase(animSource);
54 }
55 }
56
57 return false;
58 }
int m_CommandUIDPerCrewIdx[4]
override int GetCarDoorsState(string slotType)
override string GetAnimSourceFromSelection(string selection)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)