camPrepareTarget: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?]]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) 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
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