camPrepareTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 9: Line 8:




____________________________________________________________________________________________


| Prepares the camera target to a position or to a target. Needs the call of [[camCommitPrepared]] to be conducted. |DESCRIPTION=
| Prepares the camera target to a position or to a target. Needs the call of [[camCommitPrepared]] to be conducted. |DESCRIPTION=
____________________________________________________________________________________________


| camera [[camPrepareTarget]] position |SYNTAX=
| camera [[camPrepareTarget]] position |SYNTAX=
Line 30: Line 27:
|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]] |RETURNVALUE2=


____________________________________________________________________________________________
   
   
|x1= <code>_camera [[camPrepareTarget]] [[getPos]] [[player]];</code> |EXAMPLE1=
|x1= <code>_camera [[camPrepareTarget]] [[getPos]] [[player]];</code> |EXAMPLE1=
|x2= <code>_camera [[camPrepareTarget]] [[player]];</code> |EXAMPLE2=
|x2= <code>_camera [[camPrepareTarget]] [[player]];</code> |EXAMPLE2=
____________________________________________________________________________________________


| [[camPreload]], [[camCommitPrepared]], [[camSetTarget]] |SEEALSO=
| [[camPreload]], [[camCommitPrepared]], [[camSetTarget]] |SEEALSO=

Revision as of 00:18, 17 January 2021

Hover & click on the images for description

Description

Description:
Prepares the camera target to a position or to a target. Needs the call of camCommitPrepared to be conducted.
Groups:
Camera Control

Syntax

Syntax:
camera camPrepareTarget position
Parameters:
camera: Object - object of type "camera"
position: Position - target location
Return Value:
Nothing

Alternative Syntax

Syntax:
camera camPrepareTarget target
Parameters:
camera: Object - object of type "camera"
target: Object
Return Value:
Nothing

Examples

Example 1:
_camera camPrepareTarget getPos player;
Example 2:
_camera camPrepareTarget player;

Additional Information

See also:
camPreloadcamCommitPreparedcamSetTarget

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

Notes

Bottom Section