10 if( !target )
return false;
13 Object targetObject = target.GetObject();
21 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
24 if ( !
Class.CastTo(transport, targetObject) )
27 if (
Class.CastTo(car, targetEnt) )
29 for (
int i = 0; i < selections.Count(); i++)
31 m_AnimSource = car.GetAnimSourceFromSelection( selections[i]) ;
32 if ( m_AnimSource !=
"" )
38 if ( m_AnimSource ==
"SeatDriver" )
43 if ( !vehCmd && car.GetCarDoorsState(
"NivaDriverDoors" ) ==
CarDoorState.DOORS_CLOSED )
47 if ( m_AnimSource ==
"SeatCoDriver" )
52 if ( !vehCmd && car.GetCarDoorsState(
"NivaCoDriverDoors" ) ==
CarDoorState.DOORS_CLOSED )
56 if ( !vehCmd && !transport.CanReachSeatFromDoors(selections[i], player.GetPosition(), 1.0) )
67 override bool CanBeUsedInVehicle()