How to get a reference to a specific pain volume using Cast to PainCausingVolume

I created a pain causing volume. I want to increase the damage per second after a set period of time. I tried using the “Cast to PainCausingVolume” function in the level blueprint, but I have failed to figure out how to get a reference to my single pain volume with it. I was able to get the reference by using the “Get Actor of Class” function and accomplish the damage change I wanted, but I would like to learn how to get the reference using the “Cast to PainCausingVolume” function. I thought maybe I could do this by converting the volume to a blueprint, but I have been unable to convert it to a working blueprint, it seems like maybe you are not supposed to do that.

Thanks for any insight!

Hey @WarbunnyOG1!

So what you’ll do is open your level blueprint, and move it out of the way, because you’re going to drag your pain volume into the level blueprint from your world outliner!

That will reference that specific actor in the level. Just take care if you delete it from the scene because the level BP won’t know what to do and pull a null reference! :slight_smile:

1 Like

Thanks a million!

2 Likes