#my monster script is breaking.
1 messages · Page 1 of 1 (latest)
its kinda weird in the video hes never frozen like that before, the main problem is he only seems to chase me until he gets in a certain radius, and then just freezes
it seem like it pathfinds your position and then wehn it gets there it pathfinds ur next location 1-2s later
if that is the problem how should i go about fixing it
** You are now Level 2! **
run this every frame instead of every 0.5s i would say
ok thanks, ill try that right now
tried it and
A) still doesnt chase me,
B) lowkey has troubles going back to patroling afterwards and like spazzes out refreshing every frame going to a new waypoint
on further testing with my original code the pathfinding is strong, and even able to go a different way in order to get to me faster. I dont know what the problem is but I'm pretty sure its something else probably in the atttacks script blocking it from getting too close to me. the chase animation works fine as long as its not too close to me
ok one more development, i added debug thingys to send a message whenever its performing an action, so it patrols normally, and sends 1 chasing message when further away, but when it hits the invisible wall thing it starts rapid firing "chasing" messages making me believe its probably stuck in a loop of some sort that has to do with being to close to the character?