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

follow

This type of objective requires an AI vehicle to reach a specific locator (specified as a series of waypoints) to pass the stage.

Examples

MFK
Lua
// Specify the name of a Type 0 Event Locator the vehicle will drive to. 
// At least 1 waypoint is required for the stage to function.
AddStageWaypoint("m5_van_path6");

AddObjective("follow");
	// Required: Specify the vehicle that the player must follow.
	SetObjTargetVehicle("cVan");
CloseObjective();
-- Specify the name of a Type 0 Event Locator the vehicle will drive to. 
-- At least 1 waypoint is required for the stage to function.
Game.AddStageWaypoint("m5_van_path6")

Game.AddObjective("follow")
	-- Required: Specify the vehicle that the player must follow.
	Game.SetObjTargetVehicle("cVan")
Game.CloseObjective()

Notes

These objectives are typically used in conjunction with a followdistance condition in order to require the player to maintain a certain distance between themselves and the vehicle.