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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

why does delay not work?

I made a respawn system. It works without delay, but not WITH delay. Why? Would be grateful for any help!

alt text alt text

Product Version: UE 4.18
more ▼

asked Mar 04 '19 at 04:17 PM in Blueprint Scripting

avatar image

14 2 2 2

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

1 answer: sort voted first

Whatever you do after you destroy the actor will not be called as you already destroyed the caller (Delay node will not make the Actor stick around). You should wait with the destroy node until you are done using the Actor. Either have an external Actor manage the spawn or delay the destroy event by SetLifeSpan. Note that you would have to fake that the Actor was destroyed when using SetLifeSpan. Another approach is to never destroy anything but pick actors from a pool and reset them whenever they re-spawn.

more ▼

answered Mar 04 '19 at 04:51 PM

avatar image

816 3 4 8

avatar image Crowley Caine Mar 04 '19 at 04:53 PM

This is correct. You also don't need the double delay. You can delay the same amount of time whether it is respawning or not. After you have decided whether it is respawning, you either respawn it, or you destroy it.

If you are looking for the enemy to be gone a set amount of time before respawning, just set actor to hidden in game for that amount of that and call respawn after.

(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