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"

Runtime BP Box Trigger and Events fire 3 times

Hello, when i spawn a blueprint with a box collision, and then On Actor Overlap Event spawn a character, or a sound cue, the event processes three times (sometimes more). And this also happens when just executing a function for that blueprint's Event Begin.

Event setup for box collision alt text

Here the default audio component highlighted, and Event Begin Play loads the function once to spawn the boss character.

alt text

The SpawnBoss function alt text The corresponding spawned character blueprint does not contain any spawning of the same character, and the same setup is used elsewhere, without that issue.

The part which initially spawns the blueprint with the triple loaded character (via game mode) alt text

Additional adding an audio component to the blueprint (which spawns at runtime), also loads three or more audio files from the associated music cue.

I tried to use DoOnce nodes, but didn't help. Also tried to just activate the audio component on trigger, still plays three songs at once.

Any ideas why this is happening?

Demo video https://www.youtube.com/watch?v=JH5Menvx1As&feature=youtu.be

Product Version: UE 4.16
Tags:
bp_code.jpg (268.5 kB)
bp_code2.jpg (453.8 kB)
bp_code3.jpg (400.6 kB)
bp_code4.jpg (424.0 kB)
more ▼

asked Jul 10 '17 at 02:49 PM in Bug Reports

avatar image

unit23
503 33 47 84

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

1 answer: sort voted first

It is still unclear why a spawn actor node with a DoOnce node, initiated through a Begin On Overlap fires 3 times.

A fix is to add additional value checks, as seen in this screenshot alt text

Bottom line, the Do Once node appears to have no effect on Game Mode blueprints?

fix1000.jpg (207.3 kB)
more ▼

answered Jul 13 '17 at 09:20 AM

avatar image

unit23
503 33 47 84

(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