# Set Camera Object Target

Grammar — Set c|Camera Object target to p|Point
FlagsNative | Action

Sets a camera object to a selected point.

# Arguments

  • camerainfo — CameraObject
  • point — Target

Returns — void

native void CameraInfoSetTarget(camerainfo c, point p);

Category: Camera / Utility

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2482
CameraInfoSetTarget(lv_camera, gv_cameraLocation)
// L2482
CameraInfoSetTarget(lv_camera, gv_cameraLocation)
// L9581
CameraInfoSetTarget(CameraInfoFromId(3850), PointWithOffsetPolar(gv_bossLocation, 4.0, 90.0))
// L9605
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9638
CameraInfoSetTarget(CameraInfoFromId(4624), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0))
// L9642
CameraInfoSetTarget(CameraInfoFromId(2149), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0))
// L9656
CameraInfoSetTarget(CameraInfoFromId(4625), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9660
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9693
CameraInfoSetTarget(CameraInfoFromId(3995), PointWithOffsetPolar(gv_bossLocation, 3.0, 90.0))
// L9705
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9849
CameraInfoSetTarget(CameraInfoFromId(3994), gv_channelLocation)
// L2351
CameraInfoSetTarget(lv_camera, CameraInfoGetTarget(CameraInfoFromId(91)))
// L2351
CameraInfoSetTarget(lv_camera, CameraInfoGetTarget(CameraInfoFromId(91)))
// L9581
CameraInfoSetTarget(CameraInfoFromId(3850), PointWithOffsetPolar(gv_bossLocation, 4.0, 90.0))
// L9605
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9638
CameraInfoSetTarget(CameraInfoFromId(4624), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0))
// L9642
CameraInfoSetTarget(CameraInfoFromId(2149), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0))
// L9656
CameraInfoSetTarget(CameraInfoFromId(4625), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9660
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9693
CameraInfoSetTarget(CameraInfoFromId(3995), PointWithOffsetPolar(gv_bossLocation, 3.0, 90.0))
// L9705
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0))
// L9849
CameraInfoSetTarget(CameraInfoFromId(3994), gv_channelLocation)

# mods/core.sc2mod

NativeLib.galaxy

// L1711
CameraInfoSetTarget(lv_newCam, CameraInfoGetTarget(lp_cam))
// L1497
CameraInfoSetTarget(lv_newCam, CameraInfoGetTarget(lp_cam))

# mods/heroes.stormmod

MapScript.galaxy

// L3686
CameraInfoSetTarget(lv_camera, UnitGetPosition(gv_heroPlayer))
// L3686
CameraInfoSetTarget(lv_camera, UnitGetPosition(gv_heroPlayer))