GlobalVariable Property dubhIsDLC1PluginLoaded AutoGlobalVariable Property dubhIsDLC2PluginLoaded AutoEvent OnInit() Bool bIsDLC1PluginLoaded = Game.GetFormFromFile(0x00FF0000, "TheyWontEvenKnow - Dawnguard.esp") Bool bIsDLC2PluginLoaded = Game.GetFormFromFile(0x00FF0000, "TheyWontEvenKnow - Dragonborn.esp") If bIsDLC1PluginLoaded == True Debug.Trace("fireundubh: Dawnguard plugin is loaded.") dubhIsDLC1PluginLoaded.SetValueInt(1) Else Debug.Trace("fireundubh: Dawnguard plugin is not loaded.") EndIf If bIsDLC2PluginLoaded == True Debug.Trace("fireundubh: Dragonborn plugin is loaded.") dubhIsDLC2PluginLoaded.SetValueInt(1) Else Debug.Trace("fireundubh: Dragonborn plugin is not loaded.") EndIf RegisterForSingleUpdate(2.5) GoToState("Active")EndEvent
For some reason, GetFormFromFile() isn't returning True when those plugins are active. What's wrong?