okok i go for it now
You left the second target actor blank.
Look at you GET ACTOR LOCATION.
You need to connect the CAST to it.
Ok i try
ok now it must be right sorry
I left that out by accident
But still freze…
But I’ll experiment with it a bit more
If it all works, I’ll let you know straight away
If you think of anything else… I’m grateful for any suggestions
Also, why are your green “SET_DISTANCE_TO_MOVE” nodes not connected? I don’t know if you need them, but why aren’t they being used?
To be honest, I didn’t do this bp alone. I was helped with it for days in a Discord channel. I was just happy that it worked and didn’t want to continue to annoy people and ask questions, so unfortunately I can’t tell you exactly
I only know that the whole thing works on the ground when the unit is tied to the Navamesh
Okay, give me 5 minutes. I want to try something with you. Be right back.
Thank you very much, I really appreciate that and whether it works out in the end or not, I pray that postivies charma will reward you for it
Start completely over. Make sure to detach the PAWN_SENSING function.
PS: Also, it’s bad to CAST/GET_ACTOR in a loop function. But for the sake of getting your project off the ground, we’ll skip this technicality.
OK!
Let me try
WAIT A MINUTE!
I made a mistake. One sec…
Okay, try this:
The reason is because with the MOVE_COMPONENT_TO, it only deals in RELATIVE SPACE, not WORLD SPACE.
What this should do is follow your character when they are in range, and then stop following if the character gets far enough away.
ok let me try but i need to now how to deal that problem that i post in my last post here (above your last post)
Ah, yes, it is a CUSTOM EVENT.
So, you right-click, then search “ADD_CUSTOM_EVENT”, and then you can create your own events/functions.
You can name it whatever you want.
To clarify, it’ll be red, but to get the blue version, you right-click again, and then search for whatever you called it.
aaaahhh ok so dont use the on pawn seensing function from unreal itself?
For now, ignore it.
I created a PAWN_SENSING function for you.
okok leeeet me try