Hi,
Sorry if the formatting of this post is incorrect this is my first time.
I am completely new to programming/unreal engine but I am a quick learner and have basic understanding of code from some work I did with Actionscript 2 back in the day.
So my setup is this:
I have a blueprint called target (which is an actor blueprint). I have placed this in my world and in the events graph placed some code to create a random XYZ vector. Basically I want this target point to randomly generate a new location and every 3 seconds move to that position.
I then want to create an AI mesh/bp or whatever I need and tell it to move to that same target point. What I am trying to achieve is have an AI bot that moves to target points but work with 1 target point that generates new locations on the fly so the behaviour is unpredictable. At a later stage i will tweak the code to check distances and collisions, i’d want it to lerp (still don’t know how that works) so that it doesnt just teleport to each target point etc…
Here are screenshots of my code please if anyone can help, let me know what nodes i should be working with, if i’ve set it up incorrectly and/or if what I want to do is achievable
THIS IS MY TARGET BP which is an actor BP
This is my AI_BP which is also an actor. Notice that the Variable ‘Location1’ is listed as SELF and notice how it is not showing up the variable in the side menu?