camPreload: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 28: | Line 28: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf>_camera | |x1= <sqf>_camera camPreload 5;</sqf> | ||
|x2= Preload camera around player to avoid stuttering on optics zooming: | |x2= Preload camera around player to avoid stuttering on optics zooming: | ||
< | <sqf>[] spawn | ||
{ | { | ||
_cam = "camera" camCreate (player selectionPosition "camera"); | _cam = "camera" camCreate (player selectionPosition "camera"); | ||
Line 41: | Line 41: | ||
}; | }; | ||
camDestroy _cam; | camDestroy _cam; | ||
};</ | };</sqf> | ||
|seealso= [[camPreloaded]] [[preloadCamera]] | |seealso= [[camPreloaded]] [[preloadCamera]] | ||
}} | }} |
Revision as of 16:08, 13 May 2022
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
- Syntax:
- camera camPreload timeout
- 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:
- camPreloaded preloadCamera
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Camera Control