Download

Trying to track global variable values

Making my first shooting game in UE4. I created an int called AmmoCount in the blueprint of my character. In my AmmoPickup BP I reference my character and augment his ammo value. When I use my pickup, I am always getting 0 for all values (health, ammo, etc). Am I somehow getting a null reference when I create my character’s reference in other BP’s? I’d like the character’s values to be global and not reset every time I use a pickup. Where am I going wrong?

Thanks!

Can you provide some screens ?
However if I correct understand you. You need see function CreateActorFromClass. Your AmmoPickup BP need create instance before.