AI Destination change target in runtime

Hi.
Is there a way to add a script to the character that has AI Destination Setter script so a game player can press a button or select an option in a menu to change the target set in the AI Destination Setter script?

So, in this way, in runtime, the game player could select via a menu, a range of locations (game objects) instead of having one AI Destination to follow.

Any suggestions or pointers are gratefully received.

There is a way. You need to change the value of the “target” variable. Target =??? ;

1 Like

Thank you. I’ll work with that.