AI Move To function in custom function

Hello Forum,

If I have a Blueprint Actor, and I go to its Event Graph, I can add the AI Move To function. However, if I add a custom function to the Blueprint Actor and inside the function definition I want to add the AI Move To Function, it is not possible. If I try to copy-paste the function AI Move To function the custom function, it says “One or more copied nodes could not be pasted into this graph”.
Why is it not possible to add the function AI Move To to a custom function?

Thank you.

It is not possible to have any latent actions (actions that finish at a later point in time) inside functions

The AI Move To task is an asynchronous action, so it can’t be placed in a function (same with for example Delay)

Zeaf is correct but if you’re just cleaning up the graph you can use a Macro instead

That makes sense, thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.