camSetTarget
- Local argument
- Local effect
- Arma 3 v0.50
- First in Operation Flashpoint v1.00
Command · Markdown · JSON · original wiki page
Description
Set the target object or position where the given camera should point at. Needs the call of camCommit to be conducted. To reset the target use objNull.
Syntax
Syntax 1
camera camSetTarget target
Parameters:
Returns: Nothing
Syntax 2
camera camSetTarget position
Parameters:
Returns: Nothing
Examples
Example 1
_camera camSetTarget player;
Example 2
_camera camSetTarget [2540,1503,26];
Example 3
_cam = "camera" camCreate (player modelToWorld [0, 100, 10]);
_cam camSetTarget player;
_cam camSetRelPos [0, 0.5, 1.5];
_cam cameraEffect ["internal", "back"];
_cam camCommit 1;
player setRandomLip true;