Asking for suggestions mainly, however, given the chance to make an AI commandeer a boat, how would you code the AI to maneuver it? What info would you have it check for and how would it react to the info given? Would you worry about checking for land structures or no? Etc. I have a few ideas floating around my mind but I wanna collide my thoughts with others to see what other ideas people might bring up.
You could use pathfinding and if you want to shoot at the boat you can have a hit box that has an overhead gui displaying a bar. And hitting the hitbox will lower the hp.
The boats I’m utilizing body movers to move them at a realistic pace so pathfinding wouldn’t really be an option in my case. However coding AI cannons to hit targets n’ stuff is already coded and formulas can be found readily online. My main goal is to figure out how I would get the boat to move and navigate into offensive/defensive positions to attack other boats efficiently. I might have it favor behind or in front of enemy ships as cannons cannot rotate more than 70 degrees left and right making bigger boats unable to retaliate as easily.
if you have figured it out now correct me if I’m wrong but, I’m assuming you’d have to use raycasting to raycast the boat towards the player?
AI Code This is the best AI for coding. I asked it to help me with 10 things and it gave me them all correctly and it can even tell you how images are coded so ask it this question since it would be better at answering this than a human.
Why can’t pathfinding be an option? You can use pathfinding service to find waypoints to a position and use the boat’s bodymovers to transport it there.
I already answered. The ai has limited functionality
they could but maybe its down to preference?
how? it answered all the questions i gave it and it can code in every popular programming language.
it can also scan photos and tell you how they were coded so i doubt that.
i never really attempted this as its kind of a dead project, however after looking how @vetexgames handled his AI boats for Arcane Odyssey i’d presume you’d have huge square hitboxes for islands and open ocean obstacles and raycast in front of the boat to see if its on a collision course for it. but yeah, that’d be a solution. but there’re definitely many and better alternatives, i just haven’t looked into this since making this post LOL.
side note, 2 yrs later jeez, i forgot about this question
its not efficient can’t see all scripts can’t give you an exact answer, people can on their expertise whereas a ai chat bot is trained on all things making it give a general answer that doesn’t pinpoint anything.