This package allows the player to have their personal turret mounted on the shoulder.
PlayerShoulderMountedTurret template to the player.
If you want your player to start a game with a turret already installed you need to check the
startWithTurret checkbox and provide a
gunTemplate (Only Mighty Defense System guns are supported).
The package contains two example guns:
startWithTurret: Allows your player to start with a game with a turret already installed
toggleTurretKey: A button that allows users to activate/deactivate their turret
Targetting: Please refer to Targetting section in Mighty Defense System
onTurretTimerStarted: Event that is fired when a time-limited turret has been picked up (Passes the timerValue)
onTurretTimerFinished: Event that is fired when a time-limited turret ran out of time
destroyEffect: Effect asset that is played when turret is gets destroyed
destroySound: A sound asset that is played when turret is gets destroyed
activationSound: A sound asset that is played when turret is gets activated
deactivationSound: A sound asset that is played when turret is gets activated
turretGunTemplate: A template of the turret gun that is going to be installed on the players shoulder
activateOnPickup: Allows turret to be activated as soon as it’s being picked up
destroyAfter: Destroys the turret after a specific time (When set to 0 the turret will only get destroyed if it’s gun runs out of ammo)
This package contains two example gun templates (
ShoulderMountedTurretGunShotgun) but you can easily expand or modify those templates.
For configuration please refer to a TurretGun section in Mighty Defense System