Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Smoothly conduct the changes (for example, a camera move) assigned to a camera within the given time.

If the time is set to zero, the changes are applied immediately.

Changes to a camera of type "seagull" are always considered completed right away, even if the time parameter is bigger than 0.

Syntax

Syntax:camera camCommit time
Parameters:
  • camera: Object - Object of type "camera".
  • time: Number - Time (in seconds) the changes should take.
Return Value:Nothing

Examples

Examples:
// Create a camera behind the player, aiming at them
_cam = "camera" camCreate (player modelToWorld [0,-5,2]);
_cam cameraEffect ["internal", "BACK"];
_cam camSetTarget player;
// Smoothly move the camera to the right of the player 
_cam camSetPos (player modelToWorld [5,0,2]);
_cam camCommit 3;
waitUntil {camCommitted _cam};
// Wait until the camera completes the move, then move to the front of the player
_cam camSetPos (player modelToWorld [0,5,2]);
_cam camCommit 3;

Additional Information

See also: camCommitted
Multiplayer: 
Problems: 

Notes