Simple Weapon Script

WITS

(0)
$4
Publisher WITS
File size 247.88kB
Number of files 32
Latest version 1
Latest release date 2020-06-12 11:51:12
First release date 2020-06-12 11:51:12
Supported Unity versions 2018.4.2 or higher

Do you have a cool weapon model but no shooting script? Then this asset is for you! Two simple scripts to make weapons shootable; put the WeaponScript on the weapon and the BulletScript on the bullet prefab. Done!

The system is physics based which enables bullet drop over distance depending on the initial force, which is a simple setting.

Features:
* Very easy to make a shootable weapon from any 3D-model
* Support for muzzle flash effects and shooting sound
* Simply change weapon attributes in editor to make different types of weapons
* Attributes: Fire rate, magazine size, reload speed, infinite ammo toggle, bullet velocity... * Demo scene included with grenade launcher (lobbing), submachine gun and hand gun
* Full source code included!

Please observe:
* The bullets are physics based, no ray tracing is used
* It's a lightweight asset with only shooting functionality, no bullet hit, etc.
* This asset will be continuously updated with more features