x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

get random reachable point in radius always returns the same value and it's never reachable

alt text

this is my spawn volume blueprint, it spawns enemies but they all spawn in the same spot and it's always right outside of the navigable area. The level is all on rooftops so they spawn right on the edge of one of the roofs and fall off. I've been stuck on this problem all day and I can't figure it out.

Product Version: UE 4.10
Tags:
capture.png (165.3 kB)
more ▼

asked Apr 24 '16 at 12:48 AM in Blueprint Scripting

avatar image

koron321
1 1 2 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

There are so many things wrong with this blueprint that I do not know where to start. First things first. Try using Get Random Point in Navigable Radius. You're missing that Navigable word, that may explain why they are spawning where they are.

A couple of other observations:

  1. Do not use Get All Actors of Class on Event Tick

  2. Do not do this on Event Tick at all. Consider using a Timeline.

  3. Do something about that first For Loop. Not only are you doing Get All Actors of Class on Tick, you're also doing it inside a For Loop.

That should fix your spawning problem, if not, reply back and I'll have another look and may be offer an alternative solution.

more ▼

answered Apr 24 '16 at 01:05 PM

avatar image

Nick Jackson
492 17 14 107

avatar image koron321 Apr 24 '16 at 02:07 PM

alt text

I set up a timeline and used Get Random Point in Navigable Radius and the result is exactly the same.

capture.png (176.7 kB)
avatar image Nick Jackson Apr 25 '16 at 01:33 AM

You're on the right track. Try to simplify your logic first, along these lines: alt text

Then build on it from there. You can try example project here.

1.png (141.0 kB)
1.png (141.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question