Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Games
  • Radical Entertainment
  • The Simpsons: Hit & Run
  • Scripting
  • Mission Objectives

losetail

This type of objective requires the player to escape an AI car that is pursuing them.

Examples

MFK
Lua
AddObjective("losetail");
	// Required: Specify the vehicle that the player needs to escape.
	SetObjTargetVehicle("skinn_v");

	// Required: Specify the distance that the player needs to get away from the target vehicle.
	SetObjDistance(150);
CloseObjective();
Game.AddObjective("losetail")
	-- Required: Specify the vehicle that the player needs to escape.
	Game.SetObjTargetVehicle("skinn_v")

	-- Required: Specify the distance that the player needs to get away from the target vehicle.
	Game.SetObjDistance(150)
Game.CloseObjective()