# Turn Camera Height Smoothing On/Off
Grammar — Turn camera height smoothing enable for player player
Flags —Native
|Action
When this is enabled, the camera will transition between terrain height changes smoothly.
# Arguments
int
— Playerbool
<preset::OnOffOption> — On/Off
Returns — void
native void CameraUseHeightSmoothing(
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:16748
VisRevealArea(1, RegionEntireMap(), 0.0, false);
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
CameraSetVerticalFieldOfView(1, false);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:16748
VisRevealArea(1, RegionEntireMap(), 0.0, false);
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
CameraSetVerticalFieldOfView(1, false);
return true;
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:366
VisRevealArea(1, RegionEntireMap(), 0.0, false);
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:661
VisRevealArea(1, RegionEntireMap(), 0.0, false);
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:588
VisRevealArea(1, RegionEntireMap(), 0.0, false);
CameraLockInput(1, true);
CameraUseHeightSmoothing(1, false);
}