Lecture 148

Play/Stop when the shooting starts

if (FireAudioComponent)
{
    IsActive ? FireAudioComponent->Play() : FireAudioComponent->Stop();
}

must be replaced with SetPaused (bool):

if (FireAudioComponent)
{
    FireAudioComponent->SetPaused(!IsActive);
}

Fixing commit

Last updated

Was this helpful?