Forum Mod Bakery Docs

Crashing when meeting the car you need to evade

Posted in Support
Please login to contribute to the conversation.
SelectMission("m0");

SetMissionResetPlayerInCar("level1_carstart");
SetDynaLoadData("l1z1.p3d;l1r1.p3d;l1r7.p3d;");

UsePedGroup( 0 ); 

AddStage(0);
	SetStageMessageIndex(12);
	AddObjective("getin", "neither");
		SetObjTargetVehicle("current");
	CloseObjective();
CloseStage();

AddStage(1);
	RESET_TO_HERE();
	SetHUDIcon( "kwike" );
	ShowStageComplete();
	SetStageMessageIndex(131);
	AddObjective("goto");
		SetDestination("m0_kwickemart","carsphere");
		SetCollectibleEffect("wrench_collect");
	CloseObjective();
CloseStage();

AddStage(1);
	SetHUDIcon( "kwike" );
	SetMaxTraffic(2);
	SetStageMessageIndex(102);
	AddObjective("interior","neither");
		SetDestination("KwikEMart", "kwik_mission_doorstar"); // use name of interiors entry locator
	CloseObjective();
CloseStage();

AddStage(1);
	SetHUDIcon( "icecream" );
	SetStageMessageIndex(152);
	AddObjective("goto");
		TurnGotoDialogOff();
		SetDestination("m0_cola","icebuck");
	CloseObjective();
CloseStage();

AddStage(2);
	AddObjective("gooutside");
		TurnGotoDialogOff();
		SetDestination("m0_kwickemart");
	CloseObjective();
CloseStage();

AddStage(3);
	SetStageMessageIndex(12);
	AddObjective("goto", "both");
		TurnGotoDialogOff();
		AddStageVehicle("wiggu_v","m0_wiggu_start","NULL", "Missions\level01\M5evade.con", "wiggum");
		SetDestination("wiggu_spawn", "carsphere");
	CloseObjective();
CloseStage();

AddStage(3);
	ShowStageComplete();
	SetStageMessageIndex(274);
	ActivateVehicle("wiggu_v","NULL","chase"); 
	AddObjective("losetail");
		SetObjTargetVehicle("wiggu_v");
		SetObjDistance(150);
	CloseObjective();
	SetStageTime(60);
	AddCondition("timeout");
	CloseCondition();
CloseStage();

AddStage("final");
	SetHUDIcon("simpsons");
	SetStageMessageIndex(217);
	AddObjective( "goto" );
		SetDestination( "m0_home", "carsphere");
	CloseObjective();
CloseStage();

CloseMission();
Have you made the locator for m0_wiggu_start?

Also you should have the AddStage(final); in there somewhere
SetObjTargetVehicle("skinn_v");
Fix this and it should work.
I added the locator to the mission's .p3d, and I was planning on that until this actually

I didn't even notice that, thank you Loren. That fixed it. Time to get new glasses