About this mod
Fixes the first person view when entering a gambling mini-game in Enderal when using Improved Camera/No Furniture Camera/Alternate Conversation Camera, etc.
- Requirements
- Permissions and credits
Why?
If you are using any of the above mods paired with any idle animation replacers that involve neck movement - you'll experience a bug when transitioning to one of Enderal's gambling minigames: Morala's Dice, and the Battle for Treomar. Since your character is sitting down and forced into first person - they transition into the gambling game cell while the furniture camera state is in effect, which Improved Camera treats as locking your camera pan to your character's head.
This results in your character slowly losing attention over the engaging race of betting their monetary gains over a pair of squares with grooves on them, or pieces of paper with symbols and graphics on top. Riveting.

Features
This bugfix fixes the issue by calling a enableplayercontrol command to transition the camera out of the furniture camera, then disables your player controls shortly after to achieve the desired static camera view with Improved Camera.
This is all done before the cell is actually loaded into view and before the gambling game starts so you won't see any of this happen unless you are using a mod or have messed with the Skyrim .ini settings to reduce the fade in from black on load. Controls don't become available until the fade to black is done, so you wouldn't be able to move in the slight instance this script fires and fixes your camera.
This mod works via a trigger box that procs when entering the cell, so it will work for subsequent games that your Prophet chooses to play.
Compatibility
This mod's .esp flagged .esl will not take up a space in your load order, and is a small .esp that simply adds a trigger box with bounds into the dice game or card game cell, making it compatible with any mods that edit those cells.
The Our Mark on This World Quest features a slightly tweaked version of the Battle for Treomar minigame which proceeds with the game setup faster than what the bugfix can fix. I have included an optional file with the quest's script functions slightly delayed so this bugfix can take effect. Thanks to TieflingGrimoire for setting this up.
This optional file is only available for those who are using the mod version v.2.1.1 of Enderal. TieflingGrimoire might be working on a similar script fix for the steam version of Enderal, so stay tuned for that release.
I have not tested this mod with Joy of Perspective(you should be using Improved Camera anyway as a more modern implementation) or Alternate Conversation Camera(gambling games outside of Esme don't initiate through dialogue branches), but this fix should work for those mods as well.
Credits
Fix inspired by the Tavern Games - Alt Camera Patch by LegacyCloud https://www.nexusmods.com/skyrimspecialedition/mods/81936
Improved Camera by ArranzCNL https://www.nexusmods.com/skyrimspecialedition/mods/93962
TieflingGrimoire for the script troubleshooting with the Our Mark On This World Quest