Hi! I’d like to ask for some help for my game AI. I have some ships capable of broadside battle, they can move and find who’s enemy or friendly, but i have problems making them go next to each other to get to into gun range.
So how would you guys approach this problem?
Any help is much appreciated!
to move in range you would just need a ai move to and set the acceptable radius to what you want the range to be. i assume you already have a method to tell the ship which to attack so using a ai move to would make things very simple, set pawn to a reference to self and the target actor to the one you want to be attacking.
once the ships are in range then i would just have a interp rotation to get them into the right rotation. though that will make them turn in place so you may want to adjust it slightly for realism.