camPreload: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|gr1 = Camera Control | |gr1 = Camera Control | ||
| Preloads the scene for the prepared camera with given timeout after which preloading is aborted. Max timeout is 30 seconds. Timeout of 0 means max timeout of 30 seconds as well. <br><br>{{Informative | This command will read prepared params set with [[camPrepareFOV]], [[camPreparePos]] and [[camPrepareTarget]], so no [[camCommitPrepared]] is necessary. If [[camPrepareFOV]] is not set, the default value is 1. If [[camPrepareTarget]] (for direction) and [[camPreparePos]] (for position) are not set, current [[direction]] and [[position]] of the camera are used. The prepared camera preload will preload main camera as well. [[cameraEffect]] is not necessary}} | | Preloads the scene for the prepared camera with given timeout after which preloading is aborted. Max timeout is 30 seconds. Timeout of 0 means max timeout of 30 seconds as well. <br><br>{{Informative | This command will read prepared params set with [[camPrepareFOV]], [[camPreparePos]] and [[camPrepareTarget]], so no [[camCommitPrepared]] is necessary. If [[camPrepareFOV]] is not set, the default value is 1. If [[camPrepareTarget]] (for direction) and [[camPreparePos]] (for position) are not set, current [[direction]] and [[position]] of the camera are used. The prepared camera preload will preload main camera as well. [[cameraEffect]] is not necessary}} | ||
| camera '''camPreload''' timeout | | camera '''camPreload''' timeout | ||
|p1= camera: [[Object]] | |p1= camera: [[Object]] | ||
|p2= timeout: [[Number]] | |p2= timeout: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code> _camera '''camPreload''' 5 </code> | |x1= <code> _camera '''camPreload''' 5 </code> | ||
|x2= Preload camera around player to avoid stuttering on optics zooming: <code>[] [[spawn]] | |x2= Preload camera around player to avoid stuttering on optics zooming: <code>[] [[spawn]] | ||
{ | { | ||
Line 31: | Line 31: | ||
}; | }; | ||
[[camDestroy]] _cam; | [[camDestroy]] _cam; | ||
};</code> | };</code> | ||
| [[camPreloaded]], [[preloadCamera]] | | [[camPreloaded]], [[preloadCamera]] | ||
}} | }} |
Revision as of 00:04, 18 January 2021
Description
- Description:
- Preloads the scene for the prepared camera with given timeout after which preloading is aborted. Max timeout is 30 seconds. Timeout of 0 means max timeout of 30 seconds as well.
- Groups:
- Camera Control
Syntax
Examples
- Example 1:
_camera camPreload 5
- Example 2:
- Preload camera around player to avoid stuttering on optics zooming:
[] spawn { _cam = "camera" camCreate (player selectionPosition "camera"); for "_i" from 0 to 359 do { _cam setDir _i; _cam camPrepareFov 0.25; _cam camPreload 0; waitUntil { camPreloaded _cam }; }; camDestroy _cam; };
Additional Information
- See also:
- camPreloadedpreloadCamera
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