Simple Integer Problem?

Hi, so in my game you can pick up C4 explosives. I have an integer attribute for how many explosives the player is carrying. But I can't seem to get each C4 picked up to add by 1. In my C4 actor, I have set:

When collision with player
Destroy Actor
Set game.C4Amount to +1

But getting multiple C4's doesn't add 1 each time, so player is forever stuck with just one.

I then of course have the same issue counting back down when player uses one.

Could anyone help me? Thank you

Comments

Sign In or Register to comment.