|
Post by jamestfreaknkirk on Jan 15, 2022 18:49:25 GMT
Hello All,
I've set up an AI to periodically (with a seperate timer script attached to a noise object) go to a position via the VAIMoveToPosition Script, The problem I'm having is; it works perfectly the first time, the AI goes to the position, performs its action and then continues patrolling. However after the second timer goes, the AI enters the correct state (so I don't think the problem lies with my timer script) the FSM message is sent to the message reciever and the reciever sends the MoveTo(string) to the moveToPosition , but nothing happens, the AI just stands still..
I'm kind of stumped, It really looks like everything is working fine, it's as if the AI thinks it's already moved to the position and does not go there again. Is there anything on the MoveToPosition script that would stop the AI from moving to a position over and over again?
Also; on all states in the FSM the Reset current desination is ticked I've tried disabling the FSM before and after the move, it has done nothing, I've tried removing the FSM target before the message reciever sends the message to the AImoveToPosition
regards, Chris
|
|
|
Post by jamestfreaknkirk on Jan 18, 2022 3:51:26 GMT
So If anyone else is running into this issue, I fixed it by setting a second VAIMoveToPosition Point, and placing it right next to my first one, and I made it so at the end of the new point, it sent the AI to the original point. when I did this, the movetoposition worked on my timer. I figure there's something stopping it from returning to the same MoveToPosition point? Or maybe no, anyways that fixed it
|
|