Killzone_Kid
cameraEffect "INTERNAL" works better than "EXTERNAL" with this command.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Sets the orientation of the given camera in the direction of the given vector. Needs camCommit. Since Arma 3 v0.50, only the second syntax with a Vector3D is available.
camera camSetDir azimuth
Parameters:
Returns: Nothing
since arma3 0.50
camera camSetDir direction
Parameters:
camera: Object - object of type "camera"direction: Vector3D - direction of camera. Must be a valid vector.Returns: Nothing
Since Arma 3:
private _pos1 = player modelToWorld [0, 5, 5];
private _pos2 = player modelToWorld [0, 50, 50];
private _cam = "camera" camCreate _pos1;
_cam cameraEffect ["INTERNAL", "BACK"];
_cam camSetPos _pos2;
_cam camSetDir (_pos2 vectorFromTo _pos1);
_cam camCommit 5;
waitUntil { camCommitted _cam };
_cam camSetPos _pos1;
_cam camCommit 5;
Before Arma 3:
private _pos1 = player modelToWorld [0, 5, 5];
private _pos2 = player modelToWorld [0, 50, 50];
private _cam = "camera" camCreate _pos1;
_cam cameraEffect ["INTERNAL", "BACK"];
_cam camSetPos _pos2;
_cam camSetDir 180;
_cam camCommit 5;
waitUntil { camCommitted _cam };
_cam camSetPos _pos1;
_cam camCommit 5;
direction · setDir · camSetTarget · getCameraViewDirection
cameraEffect "INTERNAL" works better than "EXTERNAL" with this command.