At 9:45.. AudioComponent->Play() before FIndAudioComponent called

Did I miss something, or at 9:45 after creating FindAutioComponent() function, he goes right into playing the AudioComponent without ever calling FindAudioComponent first. Maybe I missed it. I kept having Unreal crash at this point, then figured out which lines it was… but took a while to realize FindAudioComponent wasn’t actually called yet. I added it to BeginPlay, and that seems to fix the crash issue. Oddly I have the auto-activate disabled on the 2 door sound details and am still getting an auto-play.

Have you done the challenge yet?
In the challenge you have to create new bool variables and the find audio component does need to be in begin play. Also did you turn off the auto active inside the audio component.

oy, yeah tried to delete this before somebody responded to it… as the challenge gets into it. I did have it not on auto-activate, but assume close is calling it all the time anyway. I realized I missed the FindAudioComponent() call in BeginPlay() as I got into the challenge. [Will leave this post, in case anyone does something similarly daft and doesn’t catch it]. Thanks for getting on this so fast!

No problem I literally just finished that part so it was still fresh in my head. I had it crashing cause I never added it to my begin play.

Right on, I’m stoked to get onto doing my level for the main section challenge now that we have everything we need. Are you going to do the original tank section or wait for the update, or press ahead to the FPS?

Not sure yet. I started watching the original tank one but I want to try going for it on the simple shooter. But I’m curious on when we will learn sources control and if either sections will introduce it or if we have to use the original sections to learn them.

Privacy & Terms