Mistake in Video

Hi, there seems to be some misstakes in the video.

In “Event Any Damage” the instructor calls StopFireWeapon AFTER setting isDead (bool).

This will prevent the Function StopFire from playing the RifelFireEnd - Cue and just hard-stops the fire-loop.

My suggestion:

Call StopFire after Branch THEN set isDead to true! So one last time, Stop fire cease fire (while thinking player is alive) and THEN player is dead.

Also, to prevent UE4 from fireing these Errors:

PIE: Error: Blueprint Runtime Error: “Attempted to access AudioComponent_0 via property AC_WeaponFireSound, but AudioComponent_0 is pending kill”. Blueprint: BP_Marine Function: Stop Fire Weapon Graph: StopFireWeapon Node: DestroyComponent

on every hit oft the enemy AFTER the player is dead, it is neccessary to use “isValid” on the AudioComponent to check, if the AudioComponent isn’t already destroyed:

Note: I didn’ use the function “isAlive”, I just use a Branch on False-Output with “isDead” (bool), what is the same.

If I am doing wrong, please correct me.



Thanks for this, I was getting an Audio error and couldn’t compile the project because of this and the only other method I could think of right off hand was to place the check at the beginning which prevented the gun audio from being stopped after death.

1 Like

I realize the reply to this is late, but I’ve put in a request for a patch to see if the error can be address in the future.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.