wcho035 Posted August 26, 2013 Share Posted August 26, 2013 Hi, I have a mod which you can hire a follower and he follows you around, but the AI is rather retarded and when ever the follower is following, it get stuck on some tree or cell, I am trying to remedy that and also when the follower is falling behind in battle, he will stop the fight and follow me. I am trying to write a script which can make this happen. scn 1Soldier1Scriptref tempactorref nullshort distance Begin Gamemode set followers.Soldier1 to tempactor if Player.GetDistance tempactor > 100 If tempactor.IsInCombat ==1 StopCombat tempactor EndIf tempactor.MoveTo Player 25 -25 5 tempactor.evp tempactor.ResetAI tempactor.AddScriptPackage 0Soldier1followAI EndIf IF tempactor.GetDead==1 Set Value to -1 tempactor.removeitem 1Soldier1Contract 1 player.removeitem 1TroopHiredContract 1 player.removeitem 1Soldier1Contract 1 set followers.Soldier1 to null set tempactor to null EndIfEnd Please note I am not a great coder, and I need any help if someone can help me get the script correct or working. Link to comment Share on other sites More sharing options...
Recommended Posts