Static (Turret & Tower) A.I.
Compatible with: Unity 2.6 and 3.0
The turret and tower A.I. prefab makes it easy to create a shooting object in seconds. This prefab has support for:
- Projectile attacks (angled rigidbodies)
- Machine gun attacks (raycasting + fx)
- Laser effects (raycasting + line renderer)
Here is how to set up a tower or turret:
- Simply add the TurretAI script to your model
- Drag effects onto the right slots (like fire effects, projectiles, etc)
- Set the attack & engage distances
- Tweak all other variables to your liking (rotation speed, animations, etc)
To make your own effects, simply attach the TurretAIProjectile script to your effects and set the parameters to the settings you are after. Couldn\'t be easier!