# Make Camera Look At
Grammar — Make the camera look at p for player player over duration seconds with initialVelocity% initial velocity, decelerate% deceleration
Flags —Native
|Action
Adjusts the camera to look at the new target point without changing the camera eye position.
# Arguments
int
— Playerpoint
— Pointfixed
— Durationfixed
— Initial Velocityfixed
— Decelerate
Returns — void
native void CameraLookAt(
int player,
point p,
fixed duration,
fixed velocity,
fixed decelerate,
);
# Related
Category: Camera / Basic
- [F] —
void
— Apply Camera Object — ( CameraApplyInfo ) - [F] —
camerainfo
— Default Game Camera — ( CameraInfoDefault ) - [F] —
void
— Pan Camera — ( CameraPan ) - [F] —
void
— Make Camera Look At — ( CameraLookAt ) - [F] —
point
— Camera Target Of Player — ( CameraGetTarget ) - [F] —
fixed
— Camera Pitch of Player — ( CameraGetPitch ) - [F] —
fixed
— Camera Yaw of Player — ( CameraGetYaw ) - [F] —
fixed
— Camera Distance of Player — ( CameraGetDistance ) - [F] —
void
— Save Camera — ( CameraSave ) - [F] —
void
— Restore Camera — ( CameraRestore ) - [F] —
void
— Set Camera Channel On Portrait — ( CameraSetChannelOnPortrait ) - [F] —
void
— Clear Camera Channel On Portrait — ( CameraClearChannelOnPortrait ) - [F] —
void
— Set Camera Data — ( CameraSetData )
# Examples
# campaigns/liberty.sc2campaign
// L37371
CameraLookAt(1, CameraInfoGetTarget(CameraInfoFromId(997)), 3.0, -1, 20)
// L37371
CameraLookAt(1, CameraInfoGetTarget(CameraInfoFromId(997)), 3.0, -1, 20)