Spawning and Picking Up With action

Hello Everyone,

I got a little problem I am stuck with. I have a character blueprint with static mesh all working fine and shooting projectiles which is also good. Also i have a spawn volume spawning pill in different colors. The pill is blueprint actor. Now I want to achieve this thing where my character wont be able to shoot projectile until he pick up the spawned pill.

Thanks in advance.

Hey Novakin-

Depending on how your character BP is firing the projectile you should be able to set up a branch node that checks a boolean (canFire) prior to spawning the projectile. When the character collects/picks up the pill (an overlap event, maybe) that will then set the canFire bool to true.

Cheers

Thanks , I will try that as soon as I can.