# Set Camera Object Property

Grammar — Set c|Camera Object type to value
FlagsNative | Action

Sets a camera object property.

# Arguments

Returns — void

native void CameraInfoSetValue(
	camerainfo c,
	int type,
	fixed value,
);

Category: Camera / Utility

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2474

    // Implementation
    CameraLockInput(gv_p1_USER, true);
    CameraInfoSetValue(lv_camera, c_cameraValuePitch, 90.0);
    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2475

    CameraLockInput(gv_p1_USER, true);
    CameraInfoSetValue(lv_camera, c_cameraValuePitch, 90.0);
    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2476

    CameraInfoSetValue(lv_camera, c_cameraValuePitch, 90.0);
    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2477

    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2478

    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);
    CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2479

    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);
    CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);
    gv_cameraLocation = RegionGetCenter(RegionEntireMap());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2480

    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);
    CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);
    gv_cameraLocation = RegionGetCenter(RegionEntireMap());
    CameraInfoSetTarget(lv_camera, gv_cameraLocation);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2474

    // Implementation
    CameraLockInput(gv_p1_USER, true);
    CameraInfoSetValue(lv_camera, c_cameraValuePitch, 90.0);
    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2475

    CameraLockInput(gv_p1_USER, true);
    CameraInfoSetValue(lv_camera, c_cameraValuePitch, 90.0);
    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2476

    CameraInfoSetValue(lv_camera, c_cameraValuePitch, 90.0);
    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2477

    CameraInfoSetValue(lv_camera, c_cameraValueDistance, 50.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2478

    CameraInfoSetValue(lv_camera, c_cameraValueFarClip, 20000.0);
    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);
    CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2479

    CameraInfoSetValue(lv_camera, c_cameraValueFieldOfView, 20.0);
    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);
    CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);
    gv_cameraLocation = RegionGetCenter(RegionEntireMap());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:2480

    CameraInfoSetValue(lv_camera, c_cameraValueHeightOffset, 0.0);
    CameraInfoSetValue(lv_camera, c_cameraValueNearClip, 0.1);
    CameraInfoSetValue(lv_camera, c_cameraValueShadowClip, 75.0);
    gv_cameraLocation = RegionGetCenter(RegionEntireMap());
    CameraInfoSetTarget(lv_camera, gv_cameraLocation);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1712

    // 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));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1713

    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));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1714

    CameraInfoSetValue(lv_newCam, c_cameraValuePitch, CameraInfoGetValue(lp_cam, c_cameraValuePitch));
    CameraInfoSetValue(lv_newCam, c_cameraValueDistance, CameraInfoGetValue(lp_cam, c_cameraValueDistance));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1715

    CameraInfoSetValue(lv_newCam, c_cameraValueDistance, CameraInfoGetValue(lp_cam, c_cameraValueDistance));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1716

    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1717

    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1718

    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));
    CameraInfoSetValue(lv_newCam, c_cameraValueShadowClip, CameraInfoGetValue(lp_cam, c_cameraValueShadowClip));

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1719

    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));
    CameraInfoSetValue(lv_newCam, c_cameraValueShadowClip, CameraInfoGetValue(lp_cam, c_cameraValueShadowClip));
    return lv_newCam;

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1720

    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));
    CameraInfoSetValue(lv_newCam, c_cameraValueShadowClip, CameraInfoGetValue(lp_cam, c_cameraValueShadowClip));
    return lv_newCam;
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1498

    // 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));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1499

    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));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1500

    CameraInfoSetValue(lv_newCam, c_cameraValuePitch, CameraInfoGetValue(lp_cam, c_cameraValuePitch));
    CameraInfoSetValue(lv_newCam, c_cameraValueDistance, CameraInfoGetValue(lp_cam, c_cameraValueDistance));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1501

    CameraInfoSetValue(lv_newCam, c_cameraValueDistance, CameraInfoGetValue(lp_cam, c_cameraValueDistance));
    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1502

    CameraInfoSetValue(lv_newCam, c_cameraValueFarClip, CameraInfoGetValue(lp_cam, c_cameraValueFarClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1503

    CameraInfoSetValue(lv_newCam, c_cameraValueFieldOfView, CameraInfoGetValue(lp_cam, c_cameraValueFieldOfView));
    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1504

    CameraInfoSetValue(lv_newCam, c_cameraValueHeightOffset, CameraInfoGetValue(lp_cam, c_cameraValueHeightOffset));
    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));
    CameraInfoSetValue(lv_newCam, c_cameraValueShadowClip, CameraInfoGetValue(lp_cam, c_cameraValueShadowClip));

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1505

    CameraInfoSetValue(lv_newCam, c_cameraValueNearClip, CameraInfoGetValue(lp_cam, c_cameraValueNearClip));
    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));
    CameraInfoSetValue(lv_newCam, c_cameraValueShadowClip, CameraInfoGetValue(lp_cam, c_cameraValueShadowClip));
    return lv_newCam;

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1506

    CameraInfoSetValue(lv_newCam, c_cameraValueRoll, CameraInfoGetValue(lp_cam, c_cameraValueRoll));
    CameraInfoSetValue(lv_newCam, c_cameraValueYaw, CameraInfoGetValue(lp_cam, c_cameraValueYaw));
    CameraInfoSetValue(lv_newCam, c_cameraValueShadowClip, CameraInfoGetValue(lp_cam, c_cameraValueShadowClip));
    return lv_newCam;
}