Maxandmov Posted May 3, 2014 Share Posted May 3, 2014 (edited) Howdy.I was scripting my follower, and ever since I was getting struck into one problem... Since my follower is hired, he won't ever react on my hits. I mean literally. Even startcombat player won't make him attack me. Have anybody of you had the same problem? can you help me to understand where's the problem?Hiring scripted lines are...Set AAAF1REF.Waiting to 0Set AAAF1REF.IsFollowingDefault to 1Set AAAF1REF.IsFollowingLong to 0Set AAAF1REF.CombatStyleRanged to 1Set AAAF1REF.CombatStyleMelee to 0Set AAAF1REF.HasBeenHired to 1SetPlayerTeammate 1SetIgnoreFriendlyHits 1AAAF1REF.evpSet VNPCFollowers.bHumanoidInParty to 1IgnoreCrime 1AAAF1REF.addperk CompanionSuiteAAAF1Ref.Addtofaction FollowerFaction 1set VNPCFollowers.bPlayerHasFollower to 1AAAF1REF.SetFactionRank TeammateFaction 1set VNPCFollowers.nCurrentFollowers to (VNPCFollowers.nCurrentFollowers + 1)player.addtofaction AAAF1Faction 1 Firing script lines are... ShowMessage AAAF1leftSet AAAF1Ref.Waiting to 0Set AAAF1Ref.HasBeenHired to 0Set AAAF1Ref.L38 to 0Set AAAF1Ref.IsFollowingDefault to 0Set AAAF1Ref.IsFollowingLong to 0AAAF1Ref.SetPlayerTeammate 0AAAF1REF.evpset VNPCFollowers.bHumanoidInParty to 0;AAAF1REF.SetPlayerTeammate 0AAAF1REF.removeperk CompanionSuiteRemoveFromFaction FollowerFactionset VNPCFollowers.nCurrentFollowers to (VNPCFollowers.nCurrentFollowers - 1)player.removefromfaction AAAF1FactionSetAV Assistance 0 if VNPCFollowers.nCurrentFollowers == 0 set VNPCFollowers.bPlayerHasFollower to 0endif I think I tried changing everything I know. Even added line 'SetIgnoreFriendlyHits 0', but it's not present there. Edited May 3, 2014 by Maxandmov Link to comment Share on other sites More sharing options...
Rooker75 Posted May 3, 2014 Share Posted May 3, 2014 I think you need to add this to the firing scriptAAAF1REF.IgnoreCrime 0 Link to comment Share on other sites More sharing options...
Maxandmov Posted May 4, 2014 Author Share Posted May 4, 2014 (edited) Nah, I've managed to find a mistake. Forgot to do AAAF1Ref.RemoveFromFaction TeammateFaction.There's one more problem though. When I do AAAF1Ref.evp when Caesar dies and while AAAF1Ref is a teammate, he firstly runs to travel location (The fort, where he usually stays), and only afterwards start a dialogue as it's supposed to be. I've put enough conditions for the travel package NOT to work, but it still works? :SP.S. I guess I've just fixed that. Edited May 4, 2014 by Maxandmov Link to comment Share on other sites More sharing options...
Rooker75 Posted May 5, 2014 Share Posted May 5, 2014 It might have been too high in the list of packages. The AI seems to pick packages starting at the top of the list. When it finds a package it can run, it picks that one, even if there's one lower that's a better fit for the situation. Drove me nuts until I figured that out. Link to comment Share on other sites More sharing options...
Recommended Posts