camPrepareRelPos: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
mNo edit summary
 
Line 24: Line 24:
|p1= camera: [[Object]]
|p1= camera: [[Object]]


|p2= position: [[Array]] format [[Position#PositionRelative|PositionRelative]]
|p2= position: [[Position#PositionRelative|PositionRelative]]


|r1= [[Nothing]]
|r1= [[Nothing]]

Latest revision as of 07:43, 2 January 2026

Hover & click on the images for description

Description

Description:
Prepares the camera position relative to the current position of the currect target (see camPrepareTarget). Needs the call of camCommitPrepared to be conducted.
Groups:
Camera Control

Syntax

Syntax:
camera camPrepareRelPos position
Parameters:
camera: Object
position: PositionRelative
Return Value:
Nothing

Examples

Example 1:
_camera camPrepareRelPos [10,5,-2];

Additional Information

See also:
camPreload camCommitPrepared camSetRelPos

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note