Problem:
I am using Skyrim Creation Kit to create a very simple mod. I want the mod to make one NPC follow another NPC. My first problem is that I am not really 100% sure where to start. The second problem is which functions I should use. I have been reading the documentation at www.creationkit.com. In other words:
LOOP: { // move Bob to Mike's current position with speed of 0.5 (npc_Bob.moveToPosition( npc_Mike.getPos(), 0.5 ) } // end loop My Attempt:
I tried making a quest but to no avail. So then I made 2 custom actors (member and leader) and I put this script in member:
Scriptname NpcFollowNpc extends ObjectReference //***put a loop once you get this part working // moves member to leader with speed of 0.5 member.PathToReference(leader, 0.5) but it didn't compile. I don't really know if this is the right way to implement what I want. I know how to code and make algorithms and a bunch of that computer science stuff, but I don't know how to move the actor member to the location of actor leader in Skyrim and loop it while the actor leader is alive.
Any ideas how I could go about doing this? thanks for any help/feedback!