camCommitted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CAMCOMMITTED]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CAMCOMMITTED]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CAMCOMMITTED]]
 
[[Category:Scripting Commands ArmA|CAMCOMMITTED]]
| ofp |= Game name
 
|1.00|= Game version
 
|arg= local |= Arguments in MP
____________________________________________________________________________________________


| Checks if the conduction of the last camCommit call already finished. |= Description
____________________________________________________________________________________________


<h2 style="color:#000066"> '''camCommitted ''camera'''''</h2>
| '''camCommitted''' camera |= Syntax


|p1= camera: [[Object]] - object of type "camera" |= Parameter 1


'''Operand types:'''
| [[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


'''camera:''' [[Object]]
; smoothly move the camera to its new position in 6 seconds
_cam camSetPos [5680,4720,20]
_cam camCommit 6
@camCommitted _cam


'''Type of returned value:'''
; camCommitted will return false until the 6 seconds of camCommit have passed</pre> |= Example 1
____________________________________________________________________________________________


[[Boolean]]
| [[camCommit]] |= See also


'''Description:'''
}}


Check if '''camera''' has finished committing.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_it = '''camCommitted''' _camera
[[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 23:31, 1 August 2006

Hover & click on the images for description

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

Notes

Bottom Section