Download

If var = number

I am making a fps game and I created a variable that keeps track of your currently equipped gun. I want to only shoot the assault rifle when it is 1 and the shotgun when it is 2. How can I make something that checks the variables value every time you fire? I just came from game maker studio and am not used to unreal yet, are if statements even a thing? If haven’t seen one yet while searching for blocks.