Author Topic: Spawned enemy NPC stops chasing PC  (Read 525 times)

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« on: December 08, 2012, 11:27:39 pm »


                I have this problem - an NPC spawned with the OnEnter script starts chasing the PC and if the PC engages in battle, everything is fine.

However, if PC tries to get away from the NPC, he soon after stops chasing him and stands still, not attacking at all, unless PC comes close.

What might cause such a behavior and what could be the solution for that? I want this NPC to chase the player until one of them is killed.
               
               

               


                     Modifié par Grani, 08 décembre 2012 - 11:28 .
                     
                  


            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« Reply #1 on: December 09, 2012, 08:34:50 pm »


               No one knows what's going on?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« Reply #2 on: December 09, 2012, 08:48:35 pm »


               this sounds like one of the AI stuck issues, is your NPC palemaster? most of these issues have been solved in CP 1.70, but I recently found another three causing this: animate dead PM feats, try 1.71beta8 or if you have it, could be specify your monster classes/feats?
               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« Reply #3 on: December 09, 2012, 08:53:41 pm »


               My NPC is a simple commoner, level 10, I didn't change much besides giving him the skill to use simple weapons (a club) and increasing his stats a little.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« Reply #4 on: December 09, 2012, 08:56:03 pm »


               I see... then this probably wont be a bug. Think it could be intent. Try change his class to something else with similar progression, such as animal or wizard (simple changing the class will not add any spellcasting ability)
               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« Reply #5 on: December 09, 2012, 08:58:33 pm »


               I'll give it a try and report the results, thanks.
               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Spawned enemy NPC stops chasing PC
« Reply #6 on: December 09, 2012, 09:33:32 pm »


               It worked perfectly! I simply changed his class, without the wizard, to a warrior so stats and everything remained the same and he now works perfectly fine. '<img'>

Thanks a lot, ShaDoOoW!