camCommitted: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= local |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Checks if the conduction of the last camCommit call already finished. |= Description | |||
____________________________________________________________________________________________ | |||
| '''camCommitted''' camera |= Syntax | |||
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1 | |||
| [[Boolean]] - | |||
true if the last camCommit already finished, false if not |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>; 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 | |||
; camCommitted will return false until the 6 seconds of camCommit have passed</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
[[ | | [[camCommit]] |= See also | ||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|CAMCOMMITTED]] | |||
[[Category:Scripting Commands OFP 1.96|CAMCOMMITTED]] | |||
[[Category:Scripting Commands OFP 1.46|CAMCOMMITTED]] | |||
[[Category:Scripting Commands ArmA|CAMCOMMITTED]] |
Revision as of 22:31, 1 August 2006
Description
- Description:
- Checks if the conduction of the last camCommit call already finished.
- Groups:
- Uncategorised
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:
; 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 ; camCommitted will return false until the 6 seconds of camCommit have passed
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