Deal Damage to Enemies and Objects with Guns! Gun Series 3 #shorts




Published: 17 Nov 2022

Full Tutorial:

Unity Asset Store Black Friday Sale is LIVE! Check out these great deals! Up to 70% off, Flash Deals, and more! https://prf.hn/click/camref:1101l9QvC/creativeref:1101l62303


Learn how to extend our ScriptableObject-based gun system to support damage with 4 damage options:

1. Static damage

2. Damage Range

3. Static Damage with Distance-based Falloff

4. Damage Range with Distance-based Falloff


After implementing the damage, we will implement a small system to manage dealing damage to arbitrary objects, including enemies. This is handled with an IDamageable interface and EnemyHealth.


⚫ LowPoly Eyeball Model: https://assetstore.unity.com/packages/3d/characters/creatures/low-poly-character-flying-eye-fantasy-rpg-175320?aid=1101l9QvC


💸 Ongoing sales 💸

⚫ Asset Store - Black Friday Sale: https://prf.hn/click/camref:1101l9QvC/creativeref:1101l62303

⚫ Asset Store - Singles Day Sale, up to 50% off a super selection of assets: https://assetstore.unity.com/double-11-2022?aid=1101l9QvC

⚫ Asset Store - 50% off New Assets: https://prf.hn/click/camref:1101l9QvC/creativeref:1100l65054

⚫ Humble Bundle - Low Poly 3D Bundle: https://www.humblebundle.com/software/low-poly-3d-software?partner=llamasoftware&charity=2280172


👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/scriptable-object-based-guns/

Each video has its own branch, so you can check out "part-3" branch to get only what's been implemented so far!


📚 Other Helpful Videos:

⚫ Gun Series 1 Shooting, Bullet Trails: https://youtu.be/E-vIMamyORg

⚫ Gun Series 2 Bullet Spread/Recoil: https://youtu.be/pwq7F5DeQnI

⚫ Enemy Roaming AI: https://youtu.be/3hXkdARwREo


📱 Let's stay connected

YouTube: https://youtube.com/c/LlamAcademy

Patreon: https://www.patreon.com/llamacademy

Facebook: https://facebook.com/LlamAcademyOfficial

Twitter: https://twitter.com/TheLlamAcademy

TikTok: https://tiktok.com/@LlamAcademy

Instagram: https://instagram.com/LlamAcademy


----


Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: https://www.patreon.com/llamacademy


----

Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.

I also have some Unity Assets: https://assetstore.unity.com/publishers/22409?_aid=1101l9QvC

Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.


Connect on Social Media

Some links may be affiliate links, which at no additional cost to you, gives LlamAcademy a small portion of the purchase.