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

SetMissionResetPlayerOutCar

Sets the positions where the player and their vehicle are placed upon restarting a mission.

Context

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

Syntax

SetMissionResetPlayerOutCar( player_locator, vehicle_locator );

Game.SetMissionResetPlayerOutCar( player_locator, vehicle_locator )

  • player_locator: The name of the Type 3 Locator where the player is placed.
  • vehicle_locator: The name of the Type 3 Locator where the player's vehicle is placed.

Examples

SelectMission("m1");
	...

	SetMissionResetPlayerOutCar("m4_homer_start", "m4_carstart");

	AddStage();
		...
	CloseStage();
CloseMission();

Game.SelectMission("m1")
	...

	Game.SetMissionResetPlayerOutCar("m4_homer_start", "m4_carstart")

	Game.AddStage()
		...
	Game.CloseStage()
Game.CloseMission()

Notes

When both this command and SetMissionResetPlayerInCar are used, the player will be placed at the player_locator from SetMissionResetPlayerOutCar, and the vehicle will be placed at whichever vehicle_locator is specified last in the script.

Donut Team © 2024 · v4.0