# Turn Camera Vertical Field Of View On/Off
Grammar — Turn camera vertical field of view enable for player player
Flags —Native
|Action
By default, the horizontal screen space is preserved between aspect ratios, and the vertical space gets cropped or expanded as necessary. When vertical field of view is turned on, the vertical screen space will be preserved between aspect ratios, and the horizontal space will get cropped or expanded as necessary.
# Arguments
int
— Playerbool
<preset::OnOffOption> — On/Off
Returns — void
native void CameraSetVerticalFieldOfView(
int player,
bool value,
);
# Related
Category: Camera / Camera Tricks
- Lock Camera Input —
void
— CameraLockInput - Set Camera Bounds —
void
— CameraSetBounds - Shake Camera —
void
— CameraShakeStart - Shake Camera Using Preset —
void
— CameraShake - Stop Shaking Camera —
void
— CameraShakeStop - Zoom Camera —
void
— libNtve_gf_SwooshCamera - Follow Unit Group with Camera —
void
— CameraFollowUnitGroup - Unit Group Followed By Camera —
unitgroup
— CameraFollowUnitGroupGet - Force Follow Unit Group with Camera —
void
— CameraForceFollowUnitGroup - Make Camera Look At And Follow Unit —
void
— CameraLookAtUnit - Make Camera Look At And Follow Actor —
void
— CameraLookAtActor - Lock Camera Mouse Relative Mode On/Off —
void
— CameraForceMouseRelative - Turn Camera Mouse Rotation On/Off —
void
— CameraSetMouseRotates - Set Camera Mouse Rotation Speed —
void
— CameraSetMouseRotationSpeed - Turn Camera Height Displacement On/Off —
void
— CameraUseHeightDisplacement - Turn Camera Height Smoothing On/Off —
void
— CameraUseHeightSmoothing - Turn Camera Vertical Field Of View On/Off —
void
— CameraSetVerticalFieldOfView
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16749
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
CameraSetVerticalFieldOfView(1, false);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:16749
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
CameraSetVerticalFieldOfView(1, false);
return true;
}