It is also supposed to disable the linked ref and stop the quest on exit.
Starting the quest seems to work. At least the debug message pops up to say so.
But when leaving the trigger everything seems to work except the quest doesn't seem to be running in order to turn it off, but it seems to me that the quest should still be running.
Here's the script:
Scriptname LBGDisableExitEnableEnter extends ObjectReference {Disables LinkedRef(s) on player exit, and re-enables them on enter.Also starts quest on entrance and stops quest on exit.}Quest Property myQuest Auto{ The name of your quest to start/stop }bool Property shouldFade = TRUE Auto{Whether the links should fade or not when enabled/disabled. Defaults to TRUE.}EVENT onTriggerEnter(objectReference triggerRef) if triggerRef == Game.GetPlayer() as actor if myQuest.isRunning() == FALSE myQuest.Start();debug.messagebox("Quest started!") endif ObjectReference MyLink = GetLinkedRef() MyLink.Enable(shouldFade) endifendEVENTEVENT onTriggerLeave(objectReference triggerRef) if triggerRef == Game.GetPlayer() as actor if myQuest.isRunning() == TRUE myQuest.Stop() debug.messagebox("Quest stopped!") endif ObjectReference MyLink = GetLinkedRef() MyLink.Disable(shouldFade) endifendEVENTThe debug message in the onTriggerLeave event should be triggered.
Any ideas?
Thanks for your time

