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"

Infinite spawn loop

Hi, i followed couple tutorials on how to create simple checkpoint system, with respawn after death. It worked flawlessly. I havent touched it since, and moved to level design of my small project. Today i have issues with infinite respawn of player. It doesnt reset the whole level, just keeps respawning player again and again (in 2-3s intervals). I am including checkpoint bp in screenshots

If you could point me in direction on how to solve this issue, that would be great!

Product Version: UE 4.21
Tags:
1-2.png (238.6 kB)
2-2.png (145.9 kB)
more ▼

asked Apr 20 '19 at 02:33 PM in Blueprint Scripting

avatar image

KAI STUDIO
1 1 1

avatar image Nebula Games Inc Apr 20 '19 at 02:45 PM

Looks like as soon as you reach a checkpoint by overlapping a trigger box you save that location and when you load the game up respawn the player at the same location i.e. in the trigger box, causing the entire process to repeat. This is a very convoluted setup for a simple save/load of the player location. Also the logic doesn't make any sense at parts, like this section:

On overlap --> check if "Load" is true --> if false --> Load Game From Slot??? If you just checked to see that this was in fact NOT a loaded game why would you then attempt to load a game from slot? Doesn't make logical sense. Your first action should be "Create Save Game Object". Anyway, I would walk through this entire setup logically in my head and ask myself if each thing I connected together makes sense. You will probably find the infinite loop issue and other inconsistencies that way.

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

0 answers: sort voted first
Be the first one to answer this question
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