Available since Version 1.18.
Set whether or not the game should use the camera's position for spawning traffic and pedestrians during a camera objective.
Scope
This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.
Syntax
MFK
Lua
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
MFK
Lua
AddObjective("camera");
SetObjCameraName("mission0camShape");
SetObjMulticontName("mission0cam");
SetObjUseCameraPosition(0);
CloseObjective();Game.AddObjective("camera")
Game.SetObjCameraName("mission0camShape")
Game.SetObjMulticontName("mission0cam")
Game.SetObjUseCameraPosition(0)
Game.CloseObjective()