Make enemy patrol without Nav Points?
Hello all, I'm wondering if there is a way to make an enemy unit patrol a random area. I currently have the enemy so you can put objects into the world and set them in an array on the enemy inspector and it moves to each one, that old chestnut. Issue being, I'm finding this tedious to set each point I want them to move to and then drag each one into the array.
What I would like to do is set an "origin" point and then set a Min/Max range for how far the enemy can move from that point, then have the enemy wander around that origin point, setting a new target location after X time. I could probably figure out most of that on my own what I don't know how to do it set an Origin point that an enemy wouldn't move further than X away from.
My goal for this hopefully to make a more universal code that can work on all my AI without having to setup NavPoints for each and every one.
I'm not new to code but still at the CobbleCode/FrankenCode level so if there's any references someone has for something like this, if possible, I would appreciate it. Thank you in advance!