Turret
Last updated
Last updated
displayGizmos: Displays the Turret detection area in the Editor.
animator: Reference to the Turret Animator that contains the shoot animation.
turretHead: The part of the turret that rotates.
detectionRange: Distance within the player is detectable. If displayGizmos is true this will be visible in the Editor.
allowVerticalMovement: Allow the turret to aim vertically
lerpSpeed: Speed of rotation interpolation
wallLayer: Defines the wall layers so the Turret cannot shoot through them.
projectilePrefab: to instantiate.
projectileSpeed: TurretProjectile forward velocity.
projectileDamage: TurretProjectile damage on hitting an
projectileDuration: Time to destroy the projectile
firePoint: Transform where the Turret will shoot from.
muzzleFlash: VFX to display on shooting.
fireRate: Fire Speed.