op16
New vMember
Posts: 5
|
Post by op16 on May 13, 2023 12:25:42 GMT
Hi,
I've noticed that when setting TimeScale to 0 while the vAIFlee is doing actions and then setting TimeScale to a different value (e.g. 1) then the game freezes. I think it's got something to do with the way the loops are designed, increasing/decreasing 1<i<36, but i couldn't manage to find the exact issue. removing the updates to i inside the loop fix the issue, but it impairs the AI from searching paths.
|
|
|
Post by Invector on May 19, 2023 13:05:39 GMT
Open the vAIFlee and add this condition in the beginning of the Flee method
if (Time.timeScale <= 0) return;
|
|
|
Post by redsam121 on Aug 9, 2023 6:33:53 GMT
On thing you could try is to set flee execution type to OnStateEnter instead of OnStateUpdate. Works for me.
|
|