FPS Tower Defense Toolkit

Cool, that shouldn’t be hard to implement. Let’s just take the example of Machine Gun Tower. By default, it has one turret named ‘TowerGun’ & an arrow component at the barrel end named ‘BulletDirectionArrow’. The arrow component is added as a child to the tower gun & always points in the direction of the turret. As a result, it will automatically update it’s direction based on the tower gun orientation.

[Image moved to attachment view]

You could add another tower gun plus arrow component alongside the original one.

Then within the ‘FocusTowerGunOnActiveTarget’ function, just add code to update the rotation of the new tower gun similar to how it’s done for the second tower. This will be useful if you want both tower guns to independently focus on the same target unit. If that’s not required, ignore this step.

Next step is to add an extra spawn projectile node similar to the existing one, but at the second tower arrow, within the ‘AttackActiveTarget’. With that you should be able to have multi turret towers working.

As an extra measure, you could add an extra line trace for the second tower gun while doing the vision check in the ‘FindTarget’.