54 {
55 super.OnStart(action_data);
56 HumanCommandVehicle vehCommand = action_data.m_Player.GetCommand_Vehicle();
57 if ( vehCommand )
58 {
59 Transport trans;
60 if ( Class.CastTo(trans, action_data.m_Target.GetObject()) )
61 {
62 int nextSeat = trans.CrewPositionIndex( action_data.m_Target.GetComponentIndex() );
63 int seat = trans.GetSeatAnimationType( nextSeat );
64 if ( seat >= 0 )
65 {
66
68
69 action_data.m_Player.OnVehicleSwitchSeat( nextSeat );
70 }
71 }
72 }
73 }
proto native void SwitchSeat(int pTransportPositionIndex, int pVehicleSeat)