Ammo

Read Time:32 Second

The Ammo component was added to the Gun prefab variant and Ammo’s Fire method is called from the Weapon’s Attack Started event. The Raycast to Target, Sound FX, and Visual FX method calls were moved from Attack Started to the Fired event. Out of Ammo and Reloaded will be used for effects and sounds related to reloading.


The Ammo Changed event exists to update the ammo amount shown on the HUD.


Ammo Pickups uses the Get Component in Children method to look for an Ammo component in the children of the Target. Since only one of the Weapons is active the Ammo Bonus will Reload that Weapon.

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleppy
Sleppy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *