@MagForceSeven thanks for the details response
@PREDALIEN yeah that works for me too and is probably the cleanest way since it should clean up any active tasks (ie an active AIMoveTo command)
To mark a solution
{
Target->Rename();
Target->Destroy();
}
seems to work although i still have no idea if its good practice?
-
Reload the entire map, which is interesting because you still destroy a LevelActors but it does seem to free their FName.
-
My cheeky solution, use ActorTags to store a unique ID, or as @MagForceSeven suggests use a custom component.