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

SetObjUseCameraPosition

Set whether or not the game should use the camera's position for spawning traffic and pedestrians during a camera objective.

Context

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

Syntax

SetObjUseCameraPosition( use_camera_position );

Game.SetObjUseCameraPosition( use_camera_position )

  • use_camera_position: Set whether or not to use the camera position.
    • Defaults to 0.

Examples

AddObjective("camera");
	SetObjCameraName("mission0camShape");
	SetObjMulticontName("mission0cam");

	SetObjUseCameraPosition(0);
CloseObjective();

Game.AddObjective("camera")
	Game.SetObjCameraName("mission0camShape")
	Game.SetObjMulticontName("mission0cam")

	Game.SetObjUseCameraPosition(0)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2024 · v4.0