camCommitPrepared

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Smoothly conduct the changes that were assigned to a camera within the given time. If the time is set to zero, the changes are done immediately.

Syntax

Syntax:
camera camCommitPrepared time
Parameters:
camera: Object - object of type "camera"
time: Number - time in seconds during which the changes shall be done
Return Value:
Nothing

Examples

Example 1:
//create a camera object _cam = "camera" camCreate [5600,4800,10]; _cam camPrepareTarget player; _cam cameraEffect ["internal", "BACK"]; _cam camCommitPrepared 0; //smoothly move the camera to its new position in 6 seconds. _cam camPreparePos [5680,4720,20]; _cam camCommitPrepared 6; waitUntil {camCommitted _cam}; //proceed

Additional Information

Multiplayer:
-
See also:
camCommit

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section