camCommitted: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 110391 by HazJ on 2018-11-07T12:54:20Z) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(56 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| ofp |= | |game1= ofp | ||
|version1= 1.00 | |||
|1.00 | |game2= ofpe | ||
|version2= 1.00 | |||
|game3= arma1 | |||
|version3= 1.00 | |||
| | |game4= arma2 | ||
|version4= 1.00 | |||
| | |game5= arma2oa | ||
|version5= 1.50 | |||
| | |game6= tkoh | ||
|version6= 1.00 | |||
| | |game7= arma3 | ||
|version7= 0.50 | |||
|gr1= Camera Control | |||
| | |||
|descr= Checks if the conduction of the last camCommit call already finished. | |||
|s1= [[camCommitted]] camera | |||
|p1= camera: [[Object]] - object of type "camera" | |||
[[ | |r1= [[Boolean]] - true if the last camCommit already finished, false if not | ||
|x1= SQS: | |||
_cam [ | <sqs> | ||
_cam | ; create a camera object | ||
_cam | _cam = "camera" camCreate [5600,4800,10] | ||
_cam camSetTarget player | |||
_cam cameraEffect ["internal", "BACK"] | |||
_cam camCommit 0 | |||
[ | ; smoothly move the camera to its new position in 6 seconds | ||
_cam camSetPos [5680,4720,20] | |||
_cam camCommit 6 | |||
@camCommitted _cam | |||
; proceed | |||
</sqs> | |||
| [[ | |x2= SQF: | ||
<sqf> | |||
_cam = "camera" camCreate [0, 0, 0]; | |||
_cam camSetTarget player; | |||
_cam camSetRelPos [0, -5, 10]; | |||
_cam cameraEffect ["internal", "back"]; | |||
_cam camCommit 0; | |||
} | waitUntil { camCommitted _cam }; | ||
_cam camSetTarget player; | |||
_cam camSetRelPos [90, 25, 10]; | |||
_cam cameraEffect ["internal", "back"]; | |||
_cam camCommit 5; | |||
waitUntil {camCommitted _cam}; | |||
_cam camSetTarget player; | |||
_cam camSetRelPos [-90, -5, 10]; | |||
_cam cameraEffect ["internal", "back"]; | |||
_cam camCommit 5; | |||
</sqf> | |||
|seealso= [[camCommit]] | |||
[[ | }} | ||
Latest revision as of 00:05, 11 July 2022
Description
- Description:
- Checks if the conduction of the last camCommit call already finished.
- Groups:
- Camera Control
Syntax
- Syntax:
- camCommitted camera
- Parameters:
- camera: Object - object of type "camera"
- Return Value:
- Boolean - true if the last camCommit already finished, false if not
Examples
- Example 1:
- SQS:
; create a camera object _cam = "camera" camCreate [5600,4800,10] _cam camSetTarget player _cam cameraEffect ["internal", "BACK"] _cam camCommit 0 ; smoothly move the camera to its new position in 6 seconds _cam camSetPos [5680,4720,20] _cam camCommit 6 @camCommitted _cam ; proceed
- Example 2:
- SQF:
_cam = "camera" camCreate [0, 0, 0]; _cam camSetTarget player; _cam camSetRelPos [0, -5, 10]; _cam cameraEffect ["internal", "back"]; _cam camCommit 0; waitUntil { camCommitted _cam }; _cam camSetTarget player; _cam camSetRelPos [90, 25, 10]; _cam cameraEffect ["internal", "back"]; _cam camCommit 5; waitUntil {camCommitted _cam}; _cam camSetTarget player; _cam camSetRelPos [-90, -5, 10]; _cam cameraEffect ["internal", "back"]; _cam camCommit 5;
Additional Information
- See also:
- camCommit
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Camera Control