Additional Script Functionality Objectives

This is a table of all the additional mission objective types added by this hack.

Objective Name Description Initial Release
camera Play a camera during the stage.  1.18
collectcoins Require the player collect coins to pass the stage. 1.18
collectwrench Require the player to collect a wrench to pass the stage. 1.18
completedwasps Require the player to have a certain amount of Wasp Cameras completed to pass the stage. 1.18
destroycars

Require the player to destroy cars to pass the stage.

 

This is different from Radical's "destroy" objective as it does not show a health bar and supports destroying multiple cars to pass the stage.

1.18
hitandrun Require the player to get a Hit & Run to pass the stage. 1.18
hitandruncaught Require the player to get caught in a Hit & Run to pass the stage. 1.18
hitandrunlost

Require the player to lose their Hit & Run to pass the stage.
This will automatically complete if the player enters the stage without being in a Hit & Run.

 

This objective only completes if the player loses the Hit & Run without getting caught.

1.18
hitandrunrage Require the player to reach the part of the Hit & Run meter where it starts blinking red to pass the stage. 1.18
hitpeds

Require the player to kick pedestrians to pass the stage.

This DOES NOT currently include hitting them with your car.

1.18
insidetrigger / outsidetrigger Require the player to be inside or outside a trigger(s) to pass the stage. 1.18
jump Require the player to jump to pass the stage. 1.18
reachspeed Require the player to reach a certain speed to pass the stage. 1.18
spring Require the player to bounce on a spring (like an air vent) to pass the stage. 1.18

Examples

camera

AddObjective("camera");
	// Set the camera and multi controller name.
	SetObjCameraName("mission0camShape");
	SetObjMulticontName("mission0cam");

	// Set whether or not the user can skip the camera animation.
	SetObjCanSkip(1);

	// Set whether or not there will be letterboxing when the camera is playing.
	SetObjNoLetterbox(0);

	// Set whether or not the game will act as though the player is at the camera's position during the objective.
	SetObjUseCameraPosition(0);
CloseObjective();

collectcoins

AddObjective("collectcoins");
	// Use SetObjTotal to set the amount of coins required. Optional.
	SetObjTotal(12);
CloseObjective();

collectwrench

completedwasps

AddObjective("wasps");
	// Configure the amount required with SetObjTotal.
	SetObjTotal(3);
CloseObjective();

destroycars

AddObjective("destroycars");
	// Specify which cars advance the objective.
	AddObjTargetModel("minivanA");
	AddObjTargetModel("glastruc");

	// Set the total amount the player needs to destroy.
	SetObjTotal(3);
CloseObjective();

hitandrun

AddObjective("hitandrun");

CloseObjective();

hitandruncaught

AddObjective("hitandruncaught");

CloseObjective();

hitandrunlost

AddObjective("hitandrunlost");

CloseObjective();

hitandrunrage

AddObjective("hitandrunrage");

CloseObjective();

hitpeds

AddObjective("hitpeds");
	// Specify specific characters to advance the objective.
	AddObjTargetModel("marge");
	AddObjTargetModel("bart");

	// Require the player to kick any of the specified peds 3 times.
	SetObjTotal(3);
CloseObjective();

insidetrigger / outsidetrigger

AddObjective("insidetrigger");
	// Specify a locator whose triggers the player must be inside to advance the objective.
	SetObjTrigger("z2phone1");
	
	// Specify the threshold for passing the stage. Optional.
	SetObjThreshold(10);

	// Set a message to show when inside the trigger. Optional.
	SetObjMessageIndex(3);
	
	// Specify the decay of the meter when the player is not inside any of the triggers. Optional.
	SetObjDecay(3, 2);
	
	// Specify the sound that will play when entering any of the triggers. Optional.
	SetObjSound("enter_trigger","gag_alm2");
	
	// Specify the sound that will play when staying inside any of the triggers. Optional.
	SetObjSound("inside_trigger","countdown_beeps",1,5);
	
	// Specify the sound that will play when exiting the triggers. Optional.
	SetObjSound("exit_trigger","P_HitByC_Mrg_01");
CloseObjective();
AddObjective("outsidetrigger");
	// Specify a locator whose triggers the player must be outside to advance the objective.
	SetObjTrigger("z2phone1");

	// This objective is largely the same except you use "outside_trigger" to specify the sound when you're outside.
	// You can only have an "outside_trigger" sound on an "outsidetrigger" stage.
	SetObjSound("outside_trigger","countdown_beeps",1,5);
CloseObjective();

jump

AddObjective("jump");
	// Set the amount of times you want the player to jump to pass.
	SetObjTotal(3);
CloseObjective();

reachspeed

AddObjective("reachspeed");
	// Use SetObjSpeedKMH to set the required speed.
	SetObjSpeedKMH(120);
CloseObjective():

spring

AddObjective("spring");

CloseObjective();

 

Back to top