NPC Wander
Posted: Fri Nov 20, 2020 5:16 pm
Not sure if this is actually a bug or not, but in cstats, the NPC Wander value will fluctuate.
If they are walking around and you cstats them, it will be 3 or whatever it should be.
If they have stopped walking when they wander into another npc and you cstats them, it will be 0.
I would assume the value would always be 3 or whatever it is in the spawn.dfn, but maybe I misunderstand.
Like maybe its the 'current wander state' of 3 and then when they get stuck, that state is 0, etc.
I have set npcwander 0 on npcs just to have them start walking around again.
Also I am not sure how to confirm, but having npcwander set > 0 seems to void scripted walkto. I have a script to walkto different coordinates every hour, but the npc just seems to wander in the original location, never going to the scripted locations.
Or maybe the problem is I'm experimenting on these npcs created by spawn.dfn instead of adding my own from scratch? I guess that will be the next step to try.
Thanks!
If they are walking around and you cstats them, it will be 3 or whatever it should be.
If they have stopped walking when they wander into another npc and you cstats them, it will be 0.
I would assume the value would always be 3 or whatever it is in the spawn.dfn, but maybe I misunderstand.
Like maybe its the 'current wander state' of 3 and then when they get stuck, that state is 0, etc.
I have set npcwander 0 on npcs just to have them start walking around again.
Also I am not sure how to confirm, but having npcwander set > 0 seems to void scripted walkto. I have a script to walkto different coordinates every hour, but the npc just seems to wander in the original location, never going to the scripted locations.
Or maybe the problem is I'm experimenting on these npcs created by spawn.dfn instead of adding my own from scratch? I guess that will be the next step to try.
Thanks!