Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, or Starfield. Doing so will help everyone on all platforms.

Issue Data
Status: New
Issue Type: Bug Report
Project: Unofficial Skyrim Special Edition Patch
Component: Unofficial Skyrim Special Edition Patch
Category: Papyrus
Assigned To: Nobody
Platform: All
Severity: Medium
Votes: 0
Watching: N/A
Opened By captainlei1993 on Jun 30, 2024 4:19 am

Issue #34176: Fixed an oversight of Default2StateActivator

The Default2StateActivator script controlling the fence gates of dawnguard castle never works as intended. The gates are supposed to close by the "SetOpen()" function call in the Fragment_12() of DLC1_SF_DLC1HunterBaseIntroEn_01008A8C, which starts by activating the dawnguard castle door when the quest stage of "A New Order" is 70. The problem is that when activating the door and then running "SetOpen()" function, the fence gates not even load, as a result, the "playAnimation()" function simply does nothing because you can't play animations for unload objects. Now knowing the culprit, my fix is simple: moving "!Is3DLoaded()" check to the outside while loop. See the source code attached for more details.
You might ask: why is there no issue in vanilla? Well, in vanilla Default2StateActivator can close the gates because it runs "SetDefaultState()" function everytime "OnLoad()" event fires. Since USSEP added a check to make the function only run on first load, the gate won't default to its close state during the scene. It's basically "double negative forms a positive" scenario.


1 comment(s)
captainlei1993 said:
Add source code to the attachment.

Attached Files:


Showing Comments 1 - 1 of 1