Jump to content

Get.Reference().Enable() not enabling!


Faran567

Recommended Posts

Hi! I started working on a player home with a little quest, merely for my own amusement. There are several objects/NPCs that I have chosen to leave disabled until the quest is started. I have scripted it so the as the quest starts, the objects/NPCs are supposed to be enabled, but as I actually try the quest in the game, neither does. I have no idea what is causing this! I have also tried having a map marker show up on the map as you read a note, but that doesn't happen either.

 

Scripts on quest stage 10 (second stage):

 

SetObjectiveDisplayed(10)

Alias_HOKNote2.GetReference().Enable()
Alias_HOKBandit.GetReference().Enable()
Alias_Pontus.GetReference().Enable()

 

-----------------------------------------------

 

Script on Stage 20 (third stage where a map marker is supposed to be activated).

 

SetObjectiveCompleted(10)
SetObjectiveDisplayed(20)
Alias_HOKMine.GetReference().AddToMap()

 

--------------------------------------------------

 

The alias HOKMine refers to: EmbershardMineMapMarker

 

As far as I can see, at least the Enable() scripts are spot-on. I am still a total newbie on scripting, but a guy on a tutorial scripted like that, and it worked perfectly in his case.

 

I've been trying so hard to make the objects enable. I've verified game cashe, on both Skyrim and the Creation Kit. I've been messing around with the settings on the objects, but nothing is helping!

Edited by Faran567
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...