# 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
- Camera Moves —
void
— TriggerAddEventCameraMove - Camera Move Reason —
int
<preset::CameraMoveReason> — EventCameraMoveReason - Apply Camera Property —
void
— CameraSetValue - Camera Object Property —
fixed
— CameraInfoGetValue - Set Camera Object Property —
void
— CameraInfoSetValue - Camera Object Target —
point
— CameraInfoGetTarget - Set Camera Object Target —
void
— CameraInfoSetTarget - Copy Of Camera Object —
camerainfo
— libNtve_gf_CopyOfCameraObject
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2482
CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);
gv_cameraLocation = RegionGetCenter(RegionEntireMap());
CameraInfoSetTarget(lv_camera, gv_cameraLocation);
CameraApplyInfo(gv_p1_USER, lv_camera, 0.0, -1, 10, true);
gf_UpdateCameraBounds();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:2482
CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);
gv_cameraLocation = RegionGetCenter(RegionEntireMap());
CameraInfoSetTarget(lv_camera, gv_cameraLocation);
CameraApplyInfo(gv_p1_USER, lv_camera, 0.0, -1, 10, true);
gf_UpdateCameraBounds();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:2351
SoundPlay(SoundLink("Evolution_ZerglingPart1_CameraZoom_Out", -1), PlayerGroupAll(), 100.0, 0.0);
lv_camera = libNtve_gf_CopyOfCameraObject(CameraInfoDefault());
CameraInfoSetTarget(lv_camera, CameraInfoGetTarget(CameraInfoFromId(91)));
CameraApplyInfo(gv_pLAYER_01_USER, lv_camera, 1.0, -1, 10.0, true);
CameraLockInput(gv_pLAYER_01_USER, false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9581
libNtve_gf_StoreUnitSelection(gv_pLAYER_01_USER, libNtve_ge_UnitSelectionStoreOption_ClearUnitSelection);
gf_BossVictoryMovement(gv_bossLocation, gv_channelLocation);
CameraInfoSetTarget(CameraInfoFromId(3850), PointWithOffsetPolar(gv_bossLocation, 4.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(3850), 1.5, -1, 10.0, true);
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9605
Wait(4.0, c_timeGame);
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4000), 2.5, -1, 10.0, true);
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 4), gv_bossLocation), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9638
gf_BossVictoryMovement(gv_bossLocation, gv_channelLocation);
if ((RegionContainsPoint(RegionFromId(41), gv_bossLocation) == true)) {
CameraInfoSetTarget(CameraInfoFromId(4624), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4624), 1.2, -1, 10.0, true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9642
}
else {
CameraInfoSetTarget(CameraInfoFromId(2149), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(2149), 1.2, -1, 10.0, true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9656
Wait(2.5, c_timeGame);
if ((RegionContainsPoint(RegionFromId(41), gv_bossLocation) == true)) {
CameraInfoSetTarget(CameraInfoFromId(4625), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4625), 2.5, -1, 10.0, true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9660
}
else {
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4000), 2.5, -1, 10.0, true);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9693
libNtve_gf_StoreUnitSelection(gv_pLAYER_01_USER, libNtve_ge_UnitSelectionStoreOption_ClearUnitSelection);
gf_BossVictoryMovement(gv_bossLocation, gv_channelLocation);
CameraInfoSetTarget(CameraInfoFromId(3995), PointWithOffsetPolar(gv_bossLocation, 3.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(3995), 1.2, -1, 10.0, true);
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9705
TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
Wait(3.0, c_timeGame);
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4000), 2.5, -1, 10.0, true);
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 4), gv_bossLocation), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:9849
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 4), gv_bossLocation), c_orderQueueReplace);
CameraSetData(PlayerGroupAll(), "ZoomedCamera");
CameraInfoSetTarget(CameraInfoFromId(3994), gv_channelLocation);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(3994), 0.0, -1, 10.0, true);
CinematicFade(true, 1.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map — MapScript.galaxy:2351
SoundPlay(SoundLink("Evolution_ZerglingPart1_CameraZoom_Out", -1), PlayerGroupAll(), 100.0, 0.0);
lv_camera = libNtve_gf_CopyOfCameraObject(CameraInfoDefault());
CameraInfoSetTarget(lv_camera, CameraInfoGetTarget(CameraInfoFromId(91)));
CameraApplyInfo(gv_pLAYER_01_USER, lv_camera, 1.0, -1, 10.0, true);
CameraLockInput(gv_pLAYER_01_USER, false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9581
libNtve_gf_StoreUnitSelection(gv_pLAYER_01_USER, libNtve_ge_UnitSelectionStoreOption_ClearUnitSelection);
gf_BossVictoryMovement(gv_bossLocation, gv_channelLocation);
CameraInfoSetTarget(CameraInfoFromId(3850), PointWithOffsetPolar(gv_bossLocation, 4.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(3850), 1.5, -1, 10.0, true);
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9605
Wait(4.0, c_timeGame);
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4000), 2.5, -1, 10.0, true);
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 4), gv_bossLocation), c_orderQueueReplace);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9638
gf_BossVictoryMovement(gv_bossLocation, gv_channelLocation);
if ((RegionContainsPoint(RegionFromId(41), gv_bossLocation) == true)) {
CameraInfoSetTarget(CameraInfoFromId(4624), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4624), 1.2, -1, 10.0, true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9642
}
else {
CameraInfoSetTarget(CameraInfoFromId(2149), PointWithOffsetPolar(gv_bossLocation, 0.5, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(2149), 1.2, -1, 10.0, true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9656
Wait(2.5, c_timeGame);
if ((RegionContainsPoint(RegionFromId(41), gv_bossLocation) == true)) {
CameraInfoSetTarget(CameraInfoFromId(4625), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4625), 2.5, -1, 10.0, true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9660
}
else {
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4000), 2.5, -1, 10.0, true);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9693
libNtve_gf_StoreUnitSelection(gv_pLAYER_01_USER, libNtve_ge_UnitSelectionStoreOption_ClearUnitSelection);
gf_BossVictoryMovement(gv_bossLocation, gv_channelLocation);
CameraInfoSetTarget(CameraInfoFromId(3995), PointWithOffsetPolar(gv_bossLocation, 3.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(3995), 1.2, -1, 10.0, true);
UISetMode(PlayerGroupAll(), c_uiModeFullscreen, 1.0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9705
TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
Wait(3.0, c_timeGame);
CameraInfoSetTarget(CameraInfoFromId(4000), PointWithOffsetPolar(PointWithOffsetPolar(gv_bossLocation, 2.5, AngleBetweenPoints(gv_bossLocation, gv_channelLocation)), 1.0, 90.0));
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(4000), 2.5, -1, 10.0, true);
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 4), gv_bossLocation), c_orderQueueReplace);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2map — MapScript.galaxy:9849
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 4), gv_bossLocation), c_orderQueueReplace);
CameraSetData(PlayerGroupAll(), "ZoomedCamera");
CameraInfoSetTarget(CameraInfoFromId(3994), gv_channelLocation);
CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(3994), 0.0, -1, 10.0, true);
CinematicFade(true, 1.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, false);
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1711
// Implementation
CameraInfoSetTarget(lv_newCam, CameraInfoGetTarget(lp_cam));
CameraInfoSetValue(lv_newCam, c_cameraValuePitch, CameraInfoGetValue(lp_cam, c_cameraValuePitch));
CameraInfoSetValue(lv_newCam, c_cameraValueDistance, CameraInfoGetValue(lp_cam, c_cameraValueDistance));
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1497
// Implementation
CameraInfoSetTarget(lv_newCam, CameraInfoGetTarget(lp_cam));
CameraInfoSetValue(lv_newCam, c_cameraValuePitch, CameraInfoGetValue(lp_cam, c_cameraValuePitch));
CameraInfoSetValue(lv_newCam, c_cameraValueDistance, CameraInfoGetValue(lp_cam, c_cameraValueDistance));
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3686
Wait(9.0, c_timeGame);
lv_camera = libNtve_gf_CopyOfCameraObject(CameraInfoDefault());
CameraInfoSetTarget(lv_camera, UnitGetPosition(gv_heroPlayer));
CameraApplyInfo(gv_pLAYER_01_USER, lv_camera, 2.0, -1, 10.0, true);
Wait(2.0, c_timeGame);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3686
Wait(9.0, c_timeGame);
lv_camera = libNtve_gf_CopyOfCameraObject(CameraInfoDefault());
CameraInfoSetTarget(lv_camera, UnitGetPosition(gv_heroPlayer));
CameraApplyInfo(gv_pLAYER_01_USER, lv_camera, 2.0, -1, 10.0, true);
Wait(2.0, c_timeGame);