Hello everyone,
I have a Mod which adds several actors (vendors) to Skyrim and I am interested in adding to my MCM menu, an option to turn the vendors ON and OFF.
The idea being if a user of the mod doesn't want the vendors cluttering the world up, they can turn them off. And if they change their mind, they can turn them back on again.
I *sort* of have it working. When the actor is initially disabled, and I tell the option to turn them on, the actor appears as I would expect. Same if I disable them.
But, the problem seems to be that once this is done, enabling and/or disabling them in the future does nothing. It seems like it is a one shot deal, and I assume I am doing something wrong.
The way I am doing it is via a simple Quest. The MCM menu option (the script for my MCM menu) does a SetStage(0) or a SetStage(10) on the quest. The quest's stages then have the papyrus fragments to Enable or Disable.
The actor is set as initially disabled and the quest stage fragments are (for stages 0 and 10 respectively:
Alias_VendorTEST.GetReference().Enable(true)
-and-
Alias_VendorTEST.GetReference().Disable(true)
Does anyone have any idea what I might be doing wrong?
Is there a better way to do this - can I do this directly from my MCM menu script rather than using a quest?
As always, thanks in advance!