13 override void CreateConditionComponents()
30 int componentIndex = target.GetComponentIndex();
35 if ( !
Class.CastTo(trans, target.GetObject()) )
38 nextSeatIdx = trans.CrewPositionIndex( componentIndex );
40 if ( nextSeatIdx < 0 )
43 Human crew = trans.CrewMember( nextSeatIdx );
47 if ( !trans.CanReachSeatFromSeat( trans.CrewMemberIndex( player ), nextSeatIdx ) )
55 super.Start( action_data );
60 if (
Class.CastTo(trans, action_data.m_Target.GetObject()) )
62 int nextSeat = trans.CrewPositionIndex( action_data.m_Target.GetComponentIndex() );
63 int seat = trans.GetSeatAnimationType( nextSeat );
67 vehCommand.SwitchSeat( nextSeat, seat );
68 if ( !
GetGame().IsDedicatedServer() )
71 action_data.m_Player.OnVehicleSwitchSeat( nextSeat );
84 if( !hcv || !action_data.m_Player.GetCommand_Vehicle().IsSwitchSeat() )
91 override bool CanBeUsedInVehicle()