# Copy Of Camera Object
Grammar — Copy of cam|Camera
Flags —Function
Returns a copy of a set camera object.
# Arguments
camerainfo
— Cam
Returns — camerainfo
camerainfo libNtve_gf_CopyOfCameraObject(
camerainfo lp_cam,
);
# 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/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:2350
GameSetGlobalTimeScale(1.0);
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);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map — MapScript.galaxy:2350
GameSetGlobalTimeScale(1.0);
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);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3685
libNtve_gf_PauseUnit(gv_heroTankDps, false);
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);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3685
libNtve_gf_PauseUnit(gv_heroTankDps, false);
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);