# Lock Camera Mouse Relative Mode On/Off
Grammar — Lock camera mouse relative mode enable for player player
Flags —Native
|Action
When this is turned on, it will make all of a player’s mouse movements act as if that player was drag-scrolling (holding down the middle mouse button). This will hide the mouse cursor. Use in conjunction with “Turn Camera Mouse Rotation On/Off” to make an FPS-style camera.
# Arguments
int
— Playerbool
[ preset::OnOffOption ] — On/Off
Returns — void
native void CameraForceMouseRelative(
int player,
bool value,
);
# Related
Category: Camera / Camera Tricks
- [F] —
void
— Lock Camera Input — ( CameraLockInput ) - [F] —
void
— Set Camera Bounds — ( CameraSetBounds ) - [F] —
void
— Shake Camera — ( CameraShakeStart ) - [F] —
void
— Shake Camera Using Preset — ( CameraShake ) - [F] —
void
— Stop Shaking Camera — ( CameraShakeStop ) - [F] —
void
— Zoom Camera — ( libNtve_gf_SwooshCamera ) - [F] —
void
— Follow Unit Group with Camera — ( CameraFollowUnitGroup ) - [F] —
unitgroup
— Unit Group Followed By Camera — ( CameraFollowUnitGroupGet ) - [F] —
void
— Force Follow Unit Group with Camera — ( CameraForceFollowUnitGroup ) - [F] —
void
— Make Camera Look At And Follow Unit — ( CameraLookAtUnit ) - [F] —
void
— Make Camera Look At And Follow Actor — ( CameraLookAtActor ) - [F] —
void
— Lock Camera Mouse Relative Mode On/Off — ( CameraForceMouseRelative ) - [F] —
void
— Turn Camera Mouse Rotation On/Off — ( CameraSetMouseRotates ) - [F] —
void
— Set Camera Mouse Rotation Speed — ( CameraSetMouseRotationSpeed ) - [F] —
void
— Turn Camera Height Displacement On/Off — ( CameraUseHeightDisplacement ) - [F] —
void
— Turn Camera Height Smoothing On/Off — ( CameraUseHeightSmoothing ) - [F] —
void
— Turn Camera Vertical Field Of View On/Off — ( CameraSetVerticalFieldOfView )
# Examples
— None found —