Turret System is a customizable script, allowing you to easily set up your own custom turrets. It can be used in many cases such as shooter games, tower defense games, tank games as the gun of the player and AI tank, and others that require turrets.
Customization options range from general types such as raycast (instant hit), projectile, homing projectile, laser, shock, and melee, further into detailed customization such as damage, shot range, fire rate, etc. Take a look at the video examples and tutorial!
Provided in the package are the Turret System scripts, some handy scripts, and over a dozen examples made out of a few placeholder models, and Unity's primitives, along with documentation in pdf.
Features:
- Clean and commented script
- Turret System main script
- Turret System projectile script
- Turret System health script, with health bar
- audio self destruct script
- constant rotation script
- load scene script
- 13 example turrets
- 3 projectile ammo examples
- 3 particle examples
- 9 placeholder sounds
Update v1.1:
- Prettier inspector
- Tool tips. Hover over any option and you'll get a description of it.
- DPS feature (shows damage per second of your turret)
- Top-Down player controls
- First person player controls
- Health bar for the TurretSystem_Health script
- Simple handy load scene script for buttons (put it on empty GO or canvas, and drag it into buttons)
- Added menu to test out scenes faster
- Added 9 sounds
- Improvements
- Fixes, fixes, fixes
Update v1.2:
- Optimized (added a frequency setting for OnTriggerStay(), making it almost 70% faster)
- Added DPS for projectile type too
- Added animation support
- added ammo, clip ammo, and reload time
- added turret angle limits for AI too
- added particle turret (2 examples, flamethrower and gattling-laser-gun)
Update v1.3:
- Pooling (bullets, sparks, muzzle, explosion)
- Target lead (aim ahead)
- Visual Particle (bullet casings)
- Move randomly when no target
- Fire on button press/hold/release
- Camera as origin for raycast attack (for FPS)
- Small fixes and addons
Update v1.4:
- Min/Max horizontal angle limits
- Mobile turret option (If checked pools won't be parented to the turret. Fixes weird rotations of projectiles on mobile turrets)
- Turret Upgrade (for tower defense games)
- Turret Upgrade Cost
- Turret sell value
Official Thread
Facebook
Twitter
Youtube
Email: damaged.grounds@gmail.com