Skip to content

mgeCameraConfig⚓︎

Allows control of MGE camera features.

Properties⚓︎

fov⚓︎

Horizontal FOV, in degrees.

Returns:

  • result (number)

nearRenderDistance⚓︎

The active world render distance in world units. This is the non-distant part that Morrowind simulates. Reducing this distance will affect the visible actor range and full detail world rendering, in exchange for better performance. This value is limited to between 2500-7168 units, and defaults to 7168 units.

Returns:

  • result (number)

shakeAcceleration⚓︎

Camera shake acceleration. Camera shake must be enabled to see an effect.

Returns:

  • result (number)

shakeEnable⚓︎

Set if camera shake is active.

Returns:

  • result (boolean)

shakeMagnitude⚓︎

Camera shake magnitude. Camera shake must be enabled to see an effect.

Returns:

  • result (number)

thirdPersonOffset⚓︎

The position offset (from the character) of the third person camera.

Returns:


zoom⚓︎

Camera zoom multiplier. Default is 1.0. Camera zoom must be enabled to see an effect.

Returns:

  • result (number)

zoomEnable⚓︎

Set if camera zoom is enabled.

Returns:

  • result (boolean)

Functions⚓︎

stopZoom⚓︎

Stops any continuous camera zoom.

mgeCameraConfig.stopZoom()

zoomContinuous⚓︎

Sets up continuous camera zoom. The zoom speed starts at rate. The speed will approach targetRate over time, if provided.

mgeCameraConfig.zoomContinuous({ rate = ..., targetRate = ... })

Parameters:

  • params (table): Optional.
    • rate (number): Default: 1.
    • targetRate (number): Default: rate.

zoomIn⚓︎

Zooms in by the specified amount, or by a small amount if no amount is provided.

mgeCameraConfig.zoomIn({ amount = ... })

Parameters:

  • params (table): Optional.
    • amount (number): Default: 0.0625.

zoomOut⚓︎

Zooms out by the specified amount, or by a small amount if no amount is provided.

mgeCameraConfig.zoomOut({ amount = ... })

Parameters:

  • params (table): Optional.
    • amount (number)