Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Objectives > SetObjCameraName / SetObjMulticontName

SetObjCameraName / SetObjMulticontName

Set the name of the camera and multi controller to use for a camera objective.

Context

This command should be called between calls to AddObjective and CloseObjective.

Syntax

SetObjCameraName( camera_name );
SetObjMulticontName( multicontroller_name );

Game.SetObjCameraName( camera_name )
Game.SetObjMulticontName( multicontroller_name )

  • camera_name: The name of the camera to use for the objective.
  • multicontroller_name: The name of the camera multi controller to use for the objective.

Examples

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

Game.AddObjective("camera")
	-- Set the camera and multi controller name.
	Game.SetObjCameraName("mission0camShape")
	Game.SetObjMulticontName("mission0cam")
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2023 · v4.0