How to make a flying AI that follows the player?
As the title says, how I make an AI (like a sphere) that follows the player in the 3d sidescroller template? I'm rather new to Unreal Engine and using blueprints but I've done some things by looking at other posts and questions that other people have had before. As for now, The "AI" is not moving at all or doing anything interesting. Here are some pictures of what I've done so far:
The first picture is the actor and the second is the controller class. I know I've done something wrong, would appreciate any help.
asked Dec 19 '18 at 04:25 PM in Blueprint Scripting
Have you looked into Unreal Engine's AI features? There are behaviour trees with which you'll have an easier time implementing AI. May I suggest you have a look at this: https://docs.unrealengine.com/en-US/Engine/AI/BehaviorTrees/QuickStart
if you are just aiming to have a very simple AI that follows the player... the following solution doesn't need AI
I'd just use a spring arm setup... but put your AI character on the end of it. You can put the AI in your Player Character BP, use a separate AI Rig (with AI mesh component and spring arm component) that is a child of your Player Character, or just on Tick constantly set the AI Rig location at your Player Character.
The length and relative rotation of your Spring Arm component, along with Socket/Target Offset will give you the offsets that you need.
VERY simple to set up, VERY performance efficient and the spring arm position lag & rotation lag will provide really nice smoothing
Follow this question
Once you sign in you will be able to subscribe for any updates here