SelectMission("sr1"); //The TIME TRIAL //Script set up for multiple laps //SetAnimatedCameraName( "race1camShape" ); //SetAnimCamMulticontName( "race1cam" ); SetMissionResetPlayerInCar("sr1_carstart"); SetDynaLoadData("l2r1.p3d;l2z1.p3d;l2r4.p3d;"); UsePedGroup(5); //Chuck: StreetRace Prop Load and Unload Setup //StreetRacePropsLoad("l1_sr1p.p3d;"); //StreetRacePropsUnload("l1_sr1p.p3d:"); AddStage(0); DisableHitAndRun(); SetHUDIcon( "marge_v" ); AddStageVehicle("marge_v","sr1_marge_carstart","chase","Missions\level01\M3dest.con", "marge"); PlacePlayerCar("current", "sr1_carstart"); PutMFPlayerInCar( ); // This makes the play auto reset into their car for this stage. StartCountdown("count"); AddToCountdownSequence( "3", 1500 ); // duration time in milliseconds AddToCountdownSequence( "2", 900 ); // duration time in milliseconds AddToCountdownSequence( "1", 1000 ); // duration time in milliseconds AddToCountdownSequence( "GO", 400 ); // duration time in milliseconds SetStageTime(100); SetStageMessageIndex(222); //SetStageTime(150); RESET_TO_HERE(); NoTrafficForStage(); AddObjective( "destroy","neither"); SetObjTargetVehicle("marge_v"); AddNPC("patty", "sr1_patty"); AddNPC("selma", "sr1_selma"); CloseObjective(); AddCondition("timeout"); CloseCondition(); AddCondition( "damage" ); SetCondMinHealth( 0.0 ); SetCondTargetVehicle( "current"); CloseCondition(); AddCondition("outofvehicle"); SetCondTime( 0 ); CloseCondition(); CloseStage(); AddStage(1,"final"); AddObjective("dialogue"); AddNPC("patty", "sr1_patty"); AddNPC("selma", "sr1_selma"); //AmbientAnimationRandomize( 1, 0 ); // ( pc=0, npc=1) (nonrandom=0, random=1) //AmbientAnimationRandomize( 0, 0 ); <<<===--- ASK IAN ABOUT THIS COMMAND //AddAmbientNpcAnimation( "dialogue_open_arm_hand_gesture" ); //AddAmbientNpcAnimation( "none" ); //AddAmbientNpcAnimation( "dialogue_thinking" ); //AddAmbientPcAnimation( "none" ); //AddAmbientPcAnimation( "dialogue_yes" ); //AddAmbientPcAnimation( "none" ); //AddAmbientPcAnimation( "dialogue_hands_in_air" ); //SetConversationCam( 3, "pc_far" ); //SetConversationCamNpcName("npc_near"); //SetConversationCamPcName("pc_near"); <<<===--- ASK IAN ABOUT THIS COMMAND. SetDialogueInfo("patty","homer","success",0); SetDialoguePositions("sr1_patty","sr1_homer","sr1_carstart"); CloseObjective(); CloseStage(); CloseMission();
and the load file:
LoadP3DFile("art\missions\level01\sr1.p3d"); //LoadP3DFile("art\missions\level01\race1cam.p3d"); //LoadP3DFile( "art\frontend\dynaload\images\msnicons\object\race.p3d" ); LoadP3DFile( "art\frontend\dynaload\images\msnicons\vehicle\Marge_v.p3d" ) LoadP3DFile("art\missions\generic\fline.p3d"); LoadDisposableCar("art\cars\marge_v.p3d","marge_v","AI"); LoadDisposableCar("art\cars\honor_v.p3d","honor_v","AI");