I'm working on a small quest in which I need an NPC to follow the player to a specific corpse, then initiate dialogue with the player. None of these things were covered in the official quest tutorial and I have tried looking at vanilla quests to get an idea of what to do, but copying and pasting the script fragment I saw didn't work (probably because it was specific to the quest it was attached to, but even the syntax of the line I pasted looked strange to me). These are the lines I copied:
Alias_Aela.GetActorReference().SetPlayerTeammate(true, false)(kmyQuest.CentralQuest as CompanionsHousekeepingScript).SwapFollowers()(kmyQuest.CentralQuest as CompanionsHousekeepingScript).Shutup(Alias_Aela.GetActorReference())(kmyQuest.CentralQuest as CompanionsHousekeepingScript).CurrentFollower.ForceRefTo(Alias_Aela.GetRef())
When I looked at them, I figured I didn't need the CompanionsHousekeepingScript stuff, so I deleted that and only pasted the first line since my NPC isn't a member of The Companions faction, then changed the Aela alias to my NPC to make it look like this:
Alias_Ilithia.GetActorReference().SetPlayerTeammate(true, false)
In game, when I got to this part of the quest, the NPC did not follow. Plus, I'm a little thrown by the true, false thing. Also, how do I prevent the NPC from following the player out of the current cell if the player decides to forget about the quest? Lastly, if the player declines to help my NPC, I want her to exit the cell and disappear. How do I do that?
I would greatly appreciate any help in clearing this up. Thanks!
