Once again there's a missing function in the creation kit it seems. There's a GetLinkedReference but no SetLinkedReference. There's a GetParentRef but no SetParentRef.
What could I do then? I want to set a npc's parent/linked reference to a specified object and enable that same object when talking to the npc about one topic, and then disable the parent/linked reference again when talking about another topic. I can't figure out how to do this.