Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > Missions > InitLevelPlayerVehicle

InitLevelPlayerVehicle

This command should be called between calls to SelectMission and CloseMission.

Syntax

InitLevelPlayerVehicle( vehicle_name, locator_name, "OTHER" );

Game.InitLevelPlayerVehicle( vehicle_name, locator_name, "OTHER" )

  • vehicle_name: The name of the vehicle to set as the player's initial starting vehicle for the mission.
  • locator_name: The name of the Type 3 locator to place the vehicle at when starting the mission.

Examples

SelectMission("m3");
	...
	\\ This sets Comic Book Guy's vehicle as the starting vehicle for this mission.
	InitLevelPlayerVehicle("comic_v", "m3_cbgcar_sd", "OTHER");
	
	SetForcedCar();
	
	AddStage();
		...
	CloseStage();
	
CloseMission();

Game.SelectMission("m3")
	...
	-- This sets Comic Book Guy's vehicle as the starting vehicle for this mission.
	Game.InitLevelPlayerVehicle("comic_v", "m3_cbgcar_sd", "OTHER")
	
	Game.SetForcedCar()
	
	Game.AddStage()
		...
	Game.CloseStage()

Game.CloseMission()

Notes

  • The vehicle set as the player's starting vehicle will use the same CON file as the version of that vehicle that the player can summon from phone booths.
  • This command is often called alongside SetForcedCar.
Donut Team © 2024 · v4.0