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"

Respawn object

Hello and good day,

I have an issue with respawning an object that is lost from a higher ground. When or if the player loses it, the object overlaps with a "killzone" blueprint object. The object is then respawned at a specified location and plays a sound after completion of the event. This happens fine when the object overlaps the killzone, but the second time the event fires only the sound plays to signal that the event has been completed. Can anybody please help me?

I have also tried a gate solution like this: CLICK HERE

I would really appreciate any help!

Here is a screenshot of the blueprint:

alt text

Product Version: UE 4.19
1.jpg (170.4 kB)
more ▼

asked Dec 12 '18 at 03:39 PM in Blueprint Scripting

avatar image

22 3 4

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

1 answer: sort voted first

The reason that will only trigger once is simple, you no longer have a reference to the object. Based on what I'm seeing, you're performing this in a level blueprint with straight references to the objects placed in the level.

Your "Orange Box" is a straight reference to the one placed in the level. That's it.

The moment you destroy that box, that reference is now null. Every time you trigger that event, it will fail that cast for that reason.

After you spawn your new "Orange Box" you need to assign it as a reference for your event to check. You should change your cast to no longer look at the "Orange Box" placed in the level, but a reference instead. Update that reference on begin play to look at the one that is placed in the level. Then, every time you create a new box, set it as the new reference.

more ▼

answered Dec 12 '18 at 05:39 PM

avatar image

1.2k 31 8 33

avatar image Sophic Dec 13 '18 at 10:16 AM

Thank you so much @MajinSephiroth , that really worked! I rewrote the blueprint to use a tag system like, the actor has tag "Orange Box". And did not have the object to be in the level, but rather spawned it at event begin play.

(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