camCommit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[.*\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[SQF[ _]syntax" to "[[SQF Syntax") |
||
Line 34: | Line 34: | ||
<nowiki>;</nowiki> proceed</code> | <nowiki>;</nowiki> proceed</code> | ||
|x2= '''[[SQF | |x2= '''[[SQF Syntax|SQF]]'''<code>[[private]] "_cam"; | ||
[[comment]] "create a camera object"; | [[comment]] "create a camera object"; |
Revision as of 22:56, 24 March 2021
Description
- Description:
- Description needed
- Groups:
- Camera Control
Syntax
- Syntax:
- Syntax needed
- Parameters:
- camera: Object - object of type "camera"
- time: Number - time in seconds during which the changes shall be done
- Return Value:
- Return value needed
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
private "_cam"; comment "create a camera object"; _cam = "camera" camCreate [position player select 0, position player select 1, 2]; _cam camSetTarget player; _cam cameraEffect ["internal", "BACK"]; _cam camCommit 0; comment "smoothly move the camera to its new position in 6 seconds"; _cam camSetPos [position player select 0, (position player select 1) + 10, 20]; _cam camCommit 6; waitUntil { camCommitted _cam; };
Additional Information
- See also:
- camCommittedcamCommitPrepared
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