# Copy Of Camera Object

Grammar — Copy of cam|Camera
FlagsFunction

Returns a copy of a set camera object.

# Arguments

  • camerainfo — Cam

Returns — camerainfo

camerainfo libNtve_gf_CopyOfCameraObject(
	camerainfo lp_cam,
);

Category: Camera / Utility

# Examples

campaigns/swarm.sc2campaignbase.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.sc2mapMapScript.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.stormmodbase.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.stormmapMapScript.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);