Hello everyone. So I have a bunch of NPCs with the NPC component set up so that they animate their mouth when they're talking. That was working fine until I implemented a system to turn off the NPC GameObjects at the start of the level and onlt turn them on when needed. After they get turned on, none of the parameters seem to change in the Animator. I can change the values in the Animator manually and the animations will play correctly. If I disable the turning off of the gameObjects, they work fine again. What is going on? How can I fix it? I'm using AC v1.74.2. I know that version is quite old. If this was a known bug that since got fixed, how could I fix it in my version? Or in which script(s) is this handled? Updating AC is out of the question since I have modified some scripts and updating could potentially break the entire game.
Thanks in advance!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I'm not experiencing this issue in the latest release, but it's not a bug I recall being reported or fixed. Are any of the scripts you modified related to character and/or animation?
Is this the "Talk bool" parameter of the NPC that's not playing? What's their "Animation engine", and does the Console report any related issues or warnings?
Characters get assigned their Animator via the Char script's GetAnimator function, which is called from their _Awake function (which itself is called from Awake inside the Player/NPC scripts).
It was some flawed logic in one of my scripts. Since I hadn't found the issue in my script I thought it maybe was a bug.