NavMesh Bounds Repeated?
I'm making a game and I'm trying to spawn AI in random points across my nav mesh. I read in some other post that I need to get the nav mesh bounds object I placed in my scene. However, when I try to get it with GetAllActorsOfClass it always returns like 11 different objects, why is that? I only have one Nav mesh bounds volume object.
Here's the logic:
And here is the result:
Any idea why this happens? It looks like it's finding 11 different objects
asked Oct 05 '16 at 01:27 AM in Blueprint Scripting
It looks like it's finding the same object multiple times! If you're not changing actors' names manually those will get generated uniquely, and from what you're printing out you're getting the same actor multiple times. Your loop's internals are flawed meaning you set
And if you really care about one specific volume why not reference it directly in the level blueprint? Unless it's not a level blueprint :D
answered Oct 07 '16 at 02:34 PM
You may want to add an IsValid check in there too.
answered Oct 07 '16 at 04:57 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here