camPreload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code> +" to "<code>")
m (Text replacement - " +<\/code>" to "</code>")
Line 17: Line 17:
|r1=[[Nothing]]
|r1=[[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]]  
{
{

Revision as of 22:49, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Camera Control

Syntax

Syntax:
Syntax needed
Parameters:
camera: Object
timeout: Number
Return Value:
Nothing

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