83 {
84 super.Start( action_data );
85
86 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
87 int componentIndex = action_data.m_Target.GetComponentIndex();
88 int crew_index = trans.CrewPositionIndex(componentIndex);
89
90
91 int seat = trans.GetSeatAnimationType(crew_index);
92 HumanCommandVehicle vehCommand = action_data.m_Player.StartCommand_Vehicle(trans, crew_index, seat);
93 if (vehCommand)
94 {
96
98 if (action_data.m_Player.GetInventory())
99 {
100 action_data.m_Player.GetInventory().LockInventory(LOCK_FROM_SCRIPT);
101 }
102 }
103 }
proto native void SetVehicleType(int pVehicleType)