# Make Camera Look At

Grammar — Make the camera look at p for player player over duration seconds with initialVelocity% initial velocity, decelerate% deceleration
FlagsNative | Action

Adjusts the camera to look at the new target point without changing the camera eye position.

# Arguments

  • int — Player
  • point — Point
  • fixed — Duration
  • fixed — Initial Velocity
  • fixed — Decelerate

Returns — void

native void CameraLookAt(
	int player,
	point p,
	fixed duration,
	fixed velocity,
	fixed decelerate,
);

Category: Camera / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L37371
CameraLookAt(1, CameraInfoGetTarget(CameraInfoFromId(997)), 3.0, -1, 20)
// L37371
CameraLookAt(1, CameraInfoGetTarget(CameraInfoFromId(997)), 3.0, -1, 20)