August 2019
Intermediate to advanced
380 pages
9h 17m
English
For the next constraint that we'll place on player abilities, we need to restrict the player from firing their gun when they reach an ammo count of 0. To do so, find the group of nodes that manages the firing of the gun, which is grouped by the comment block labeled Spawn projectile. We will add a Branch statement right after the InputAction Fire trigger that starts this chain of nodes:

Start by breaking the connection between InputAction Fire and Montage Play nodes, and then add and connect a Branch node between them. Now, find the Player Current Ammo variable from the My Blueprint panel and drag ...
Read now
Unlock full access