# Set Camera Object Property
Grammar — Set c|Camera Object type to value
Flags —Native
|Action
Sets a camera object property.
# Arguments
camerainfo
— CameraObjectint
<preset::CameraObjectPropertyType> — Propertyfixed
— Value
Returns — void
native void CameraInfoSetValue(
camerainfo c,
int type,
fixed value,
);
# 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: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.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);
mods/core.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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;
}