Quantcast
Channel: General - Epic Developer Community Forums
Viewing all articles
Browse latest Browse all 9915

Community Tutorial: 14 - Weapon Shot Count and Spread - Let's Make a Top Down Top Down Shooter

$
0
0

This Unreal 5.3 Gameplay Ability System video is about creating a shotgun style spread weapon that shoots multiple projectiles at once, with direction based on the Shot Spread Attribute. We first start by adding the Shot Count and Shot Spread Variables to the TDSWeapon Class, and the same Attributes to the TDSWeaponSet, with default values of 1.0f Count and 0.0f Spread. Next we update the Init Weapon Set Gameplay Attribute and Weapon Base Blueprint to pass along these values. Then the Weapon Fire Gameplay Ability is updated to iterate through a loop Shot Count times, and apply a Spread to each projectile spawned.

https://dev.epicgames.com/community/learning/tutorials/9y9n/unreal-engine-14-weapon-shot-count-and-spread-let-s-make-a-top-down-top-down-shooter

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 9915

Trending Articles