camPreload: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (preloads everything) |
Killzone Kid (talk | contribs) (example) |
||
Line 20: | Line 20: | ||
|x1= <code> _camera '''camPreload''' 5 </code> |EXAMPLE1= | |x1= <code> _camera '''camPreload''' 5 </code> |EXAMPLE1= | ||
|x2= Preload camera around player to avoid stuttering on optics zooming: <code>[] [[spawn]] | |||
{ | |||
_cam = "camera" [[camCreate]] [[ASLToAGL]] [[eyePos]] [[player]]; | |||
[[for]] "_i" [[from]] 0 [[to]] 359 [[do]] | |||
{ | |||
_cam [[setDir]] _i; | |||
_cam [[camPrepareFov]] 0.25; | |||
_cam [[camPreload]] 0; | |||
[[waitUntil]] { [[camPreloaded]] _cam }; | |||
}; | |||
[[camDestroy]] _cam; | |||
};</code>|EXAMPLE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 20:02, 23 September 2019
Description
- Description:
- Preloads the scene for the prepared camera. Time gives timeout, zero means no (infinite) timeout.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_camera camPreload 5
- Example 2:
- Preload camera around player to avoid stuttering on optics zooming:
[] spawn { _cam = "camera" camCreate ASLToAGL eyePos player; 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