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"

Getting looping Error not sure why.

Trying to make a random dungeon crawler where upon colliding with the collision box it will spawn the next room from a list of rooms that have doors that do the same. I keep getting this error and it pops up in different places like instead of it being "Hallway 3" it is one of the three branches. The other hallways that are being spawned are almost identical to the one in the pictures, the only difference is what it can spawn. Also there are times when I will run it that the newly spawned collision boxes will not trigger when I move to them and stand inside of them. With the prints at the end I occasionally get several numbers at once as well, I am not sure of the cause.alt textalt textalt textalt text

Product Version: UE 4.16
error1.png (20.5 kB)
error-2.png (87.4 kB)
error3.png (280.9 kB)
error4.png (243.5 kB)
more ▼

asked May 14 '18 at 03:21 AM in Using UE4

avatar image

1 2 1

avatar image HarryHighDef May 14 '18 at 09:22 AM

Maybe try switching your code round. Try calling just one event and use a Switch on int with your random number. alt text

capture.png (36.4 kB)
avatar image Bosshogge May 14 '18 at 01:54 PM

This didn't fix my issue but it does seem to be a better way of going about what I'm trying to accomplish, thank you for your help.

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

1 answer: sort voted first

Probably when you spawn a new hallway it starts overlapping the existing one which triggers OnComponentBeginOverlap that spawns a new hallway that again starts overlapping the existing one and so it continues. Set collision settings on your Box component to OverlapOnlyPawn and it should work.

more ▼

answered May 14 '18 at 09:36 AM

avatar image

155 11 13 17

avatar image Bosshogge May 14 '18 at 01:54 PM

I did for the first hallway but forgot to do it for the others, the issue has seemed to clear up for now, I appreciate the help.

(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