Turrets

Creating A Gun Turret

To create a gun turret:

  1. Create a new game object and call it 'Gun Turret'.

  2. Add a Gun Turret component, this will add Gun Weapon and Gimbal Controller components.

  3. Add your turret rig or create one with horizontal and vertically rotating parts

  4. Set the Horizontal Pivot and Vertical Pivot in the inspector of the Gimbal Controller

  5. Add a gun weapon unit and add it to the Weapon Units list in the inspector of the Gun Weapon component

  6. If you wish the turret to acquire targets on its own, add Tracker and Tracker Target Selector components to the turret, and drag the target selector into the Target Selector field in the inspector of the Gun Turret component.

Creating A Missile Turret

To create a missile turret:

  • Create a new game object and call it 'Missile Turret'.

  • Add a Missile Turret component, this will add Missile Weapon, Gimbal Controller and Target Locker components.

  • Add your turret rig or create one with horizontal and vertically rotating parts

  • Drag the vertical pivot of your turret into the Locking Reference Transform field in the inspector of the Target Locker component

  • Set the Horizontal Pivot and Vertical Pivot in the inspector of the Gimbal Controller

  • Add a missile weapon unit and add it to the Weapon Units list in the inspector of the Missile Weapon component

  • If you wish the turret to acquire targets on its own, add Tracker and Tracker Target Selector components to the turret, and drag the target selector into the Target Selector field in the inspector of the Missile Turret component.

Last updated