I’m making a game with AI but I want to have more control over how they move. I’m finding the Move to Location or Actor node is a bit lacking in features that I would like it to have, and have determined that the only solution is to make my own from scratch.
This wouldn’t be the first time I’ve made my own version of UE code from scratch, but it’s definitely the most complex one so far.
To make my life a lot easier and faster, I would ideally like to see exactly what happens to all the inputted data once the existing node is called, so that I can make my own and make the needed additions.
If anyone has any readable (high quality) source of images for what it looks like inside that node, I would be extremely grateful. I myself am unable to “go to definition” (for nodes that have that option, obviously this node does not have that option), as nothing ever happens when I try, and the “View Documentation” option is always greyed out, not that the online documentation pages have ever historically been all that great or detailed.
A little backstory for why I want to do this. Basically I’m making a game where I want to prevent the AI from changing rotation when they move (they should not be “facing” the direction they are “moving in”), as I have a specific way I want them to face at all times. Think of Tank Controls for instance. Your facing while driving a tank is not always the same as your movement direction. Well I have AI that needs to function similarly to that. But the Move To nodes that exist do not give you the ability to prevent them from changing rotation, and as far as I can tell there is no pre-existing way to lock rotation. Only thing you can do with the pre-existing code is to manually set the rotation to the way you want it. Problem is, even with the fastest FPS, the human eyes can still see the split second where the rotation is incorrect. It’s extremely irritating, but you almost never see any issues with that in released videogames. So I basically want the solution (or trick) to making this work as it should be. The only solution I can think of is to take away the ability to change rotation from the MoveTo nodes by – you guessed it – making my own MoveTo node. I plan to add in a boolean input (either for all 3 rotations at once, or one per each rotation axis) where, within the node, it checks the state of those booleans, and if they are false, rotates as expected on those axis for a ‘regular’ movement. If those bools are true however, it moves the actor without changing those rotation values. Thus creating the ability to CHOOSE if I want human/car/plane/tank/etc camera movement controls.
TLDR: MoveTo nodes don’t give you the ability to do some things I want to be able to do, so I need to make my own. Any and all help will be appreciated!