Auto charge and then shoot (mars matrix)

Hello in the game Mars Matrix. While not shooting the player ship will charge up. If press shot button the charge shot will fire. Can I have some help to make this in blue print.

In BP, you’ll want to set a variable for “charge” probably a float or int. And possibly a “max charge”.
On tick, check if the charge value is at max, if not, increment it. On input event (whatever you have set for shooting), active the ability or call an event to shoot the charge, and reset the “charge” variable to 0. Or decrement it by a value if you want the player to be allowed to fire more than once. This is a pretty rudimentary way of doing it but would work. You could also utilize the timeline functionality but I don’t know enough about that to explain how to use it for this. The best way IMO would be to setup the “charge” meter at its core in c++ using the engines gameplay ability, attribute/effect system. There are many tutorials on how to implement it and it’s fairly easy and a good starter for learning some UE c++. Best of luck

1 Like