# Set Camera Object Target
Grammar — Set c|Camera Object target to p|Point
Flags —Native
|Action
Sets a camera object to a selected point.
# Arguments
camerainfo
— CameraObjectpoint
— Target
Returns — void
native void CameraInfoSetTarget(camerainfo c, point p);
# Related
Category: Camera / Utility
- [F] —
void
— Camera Moves — ( TriggerAddEventCameraMove ) - [F] —
int
[ preset::CameraMoveReason ] — Camera Move Reason — ( EventCameraMoveReason ) - [F] —
void
— Apply Camera Property — ( CameraSetValue ) - [F] —
fixed
— Camera Object Property — ( CameraInfoGetValue ) - [F] —
void
— Set Camera Object Property — ( CameraInfoSetValue ) - [F] —
point
— Camera Object Target — ( CameraInfoGetTarget ) - [F] —
void
— Set Camera Object Target — ( CameraInfoSetTarget ) - [F] —
camerainfo
— Copy Of Camera Object — ( libNtve_gf_CopyOfCameraObject )
# Examples
# campaigns/liberty.sc2campaign
// 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
// L1711
CameraInfoSetTarget(lv_newCam, CameraInfoGetTarget(lp_cam))
// L1497
CameraInfoSetTarget(lv_newCam, CameraInfoGetTarget(lp_cam))
# mods/heroes.stormmod
// L3686
CameraInfoSetTarget(lv_camera, UnitGetPosition(gv_heroPlayer))
// L3686
CameraInfoSetTarget(lv_camera, UnitGetPosition(gv_heroPlayer))