Automated Turret

The Automated Turret is a Device in Fortnite: Creative, added in Update v26.20.
<tabber>
|-|Settings=
==All Settings==
All default values have been Bolded.
Option 	Value 	Description
Possible Targets 	Everyone, Neutral or Hostile, Hostile Only	Determines which teams can be targeted, based on their relationship to the owning team. If you choose Neutral or Hostile or Hostile Only, two additional options will display below this one.
Starting Team Type 	Team Index, Team Wildlife & Creatures 	This option only displays if the Possible Targets option is set to Neutral or Hostile or Hostile Only. Determines which team the turret is assigned to at the start of the game. This can be changed using events. If this is set to Team Index it will use the team selected in the Default Team Index option.
Default Team 	1, 1 - 100 	This option only displays if the Possible Targets option is set to Neutral or Hostile or Hostile Only. If the Team Type option is set to Team Index, this determines which team the turret is assigned to at the start of the game.
Can Target Players 	True, False 	Determines whether the turret can target players.
Activation Radius 	20.5M, 2.0M - 100.0M 	Determines how close someone can get to the turret before it activates.
Max Target Distance 	Do Not Target, 20.5M, 2.0M - 100.0M 	Determines the distance the turret can detect targets from while someone is within the activation radius. By default, this is slightly lower than Activation Radius. If disabled, the sentry will not automatically target and instead require manual targeting via the Set Target function.
Start Enabled 	True, False 	Determines if the device is enabled when the game starts
Device Health 	Indestructible, 2000, 100 - 5,000 	Determines how much health this device has, or whether it's indestructible.
Destruction Behavior 	Explode, Disable Turret 	Determines what the turret does when it is destroyed. If set to Explode, the explosion does not deal damage.
Disabled Duration 	Infinite, 1 Second - 600 Seconds 	Determines how much health the turret regains when it is re-enabled after being destroyed. (This option only displays if the Destruction Behavior option is set to Disable Turret. )
Percent Health Restored 	100%, Pick or enter a percentage 	Determines how much health the turret regains when it is re-enabled after being destroyed. (This option only displays if the Destruction Behavior option is set to Disable Turret. )
Go Dormant if Alone 	True, False 	Determines if the turret retreats into its base when there is no one within the Activation Radius.
Show Wire 	True, False 	Determines whether to show a wire connected to the turret's base. If this is set to True, two additional options are displayed below this one in the All Options list.
Wire Damage Multiplier 	1.0X, 0.0X - 10.0X 	Determines the multiplier for damage dealt to the turret's wire. (This option is only displayed if the Show Wire option is set to True. )
Wire Angle 	0 Degrees, 1 Degree - 359 Degrees 	Determines the angle at which the wire is attached to the turret. (This option is only displayed if the Show Wire option is set to True. )
Turret Damage 	Elimination, 5, 1 - 200 	This option only displays if the Destruction Behavior option is set to Disable Turret. Determines how much health the turret regains when it is re-enabled after being destroyed.
Rate Of Fire 	0.33, 0.34 - 3.00 	Determines the length of time in seconds between each shot.
Delay Before Firing 	1.3 Seconds, 1.0 Second - 5.0 Seconds 	Determines how long in seconds the turret waits to begin firing after finding a target.
Allow Idle Rotation 	True, False 	Determines whether the turret rotates to search for potential targets.
Rotation Style 	Back and Forth, Rotate Left, Rotate Right 	Determines how the turret rotates while searching for a potential target.
Idle Rotation Angle 	90.0, 10.0 - 180.0 	Determines how far the turret rotates while searching for a potential target.
Idle Rotation Multiplier 	1.0X, 0.5X - 20.0X 	Determines how quickly the turret rotates while searching for a potential target.
Tracking Rotation Multiplier	1.0X, 0.5X - 20.0X 	Determines how quickly the turret rotates while tracking a found target or looking for someone who damaged it.
Enable on Target Set 	On, Off 	Will enable the device when OnTarget gameplay function is called with a vaild target.
|-|Functions and Events=
==Functions and Events==
Option 	Description
Enable When Receiving From 	Enables the turret to rotate, target and track.
Disable When Receiving From 	Disables the turret, causing it to close and ignore its activation radius.
Use Team Wildlife & Creatures When Receiving From	If Possible Targets is not set to Everyone, set the turret to the Wildlife & Creatures team.
Use Default Team When Receiving From 	If Possible Targets is not set to Everyone, set the turret to the team from Default Team.
Set Team When Receiving From 	If Possible Targets is not set to Everyone, set the turret to the same team as the instigator.
Set Target When Receiving From 	Set the instigator as the turret's target. The instigator must be a valid target within the turret's activation radius.
Clear Target When Receiving From 	Clears the current target, returning the Automated Turret to its normal targeting, If targeting is enabled, the device will likely just re-acquire its current target.
Option 	Description
On Activated Send Event To 	Triggers when someone enters the activation radius while nobody else is there.
On Damaged Send Event To 	Triggers when the turret is damaged.
On Destroyed Send Event To 	Triggers when the turret is destroyed.
On Found Target Send Event To	Triggers when the turret finds a target.
On Lost Target Send Event To 	Triggers when the turret loses a target.
|-|Verse API=
This device can be found in Content Browser in the following path: /All/Fortnite/Devices/Environment/Hazard
==automated_turret_device class==
using { /Fortnite.com/Devices }
Inheriting 	Description
creative_object 	Base class for creative devices and props.
creative_device_base	Base class for creative_device.
Event Function 	Type
ActivatedEvent 	listenable(?agent)
DamagedEvent 	listenable(?agent)
DestroyedEvent 	listenable(?agent)
TargetFoundEvent	listenable(agent)
TargetLostEvent 	listenable(agent)
HealedEvent 	listenable(healing_result)
Function 	Parameters 	Description
GetHealth 	 	Returns the current amount of health the turret.
SetHealth 	Health:float 	Sets the turrets health the provided float value. This is clamped between 100.0 and 5000.0
GetMaxHealth 	 	Returns the MaxHealth value of the turret.
SetMaxHealth 	Amount:float 	Sets the turrets max health the provided float value. This is clamped between 100.0 and 5000.0
Heal 	Amount:float 	Heals the current turret for with a specified about of health.
Heal 	Args:healing_args	
Enable 	 	Enables this device.
Disable 	 	Disables this device.
UseDefaultTeam 	 	Set the turret to the Default Team. (Only usable if Possible Targets is not set to Everyone.)
UseTeamWildlifeAndCreatures	 	Set the turret to the Wildlife & Creatures team. (Only usable if Possible Targets is not set to Everyone.)
SetTeam 	Agent:agent 	Set the turret to the same team as the supplied Agent. (Only usable if Possible Targets is not set to Everyone.)
GetTarget 	Agent:agent 	Returns the agent currently targeted by the device.
SetTarget 	Agent:agent 	Set the supplied Agent as the turret's target. The target will only change if Agent is within the activation radius, has direct line-of-sight to the turret, is on a targetable team as determined by Possible Targets, and is not Down But Not Out.
ClearTarget 	 	Clears the turret's current target and returns the turret to searching for targets. If the current target is still in range, it'll likely be the best target, and will be reacquired. Combine with disabled targeting for best results.
SetDamage 	Damage:float 	Sets the amount of damage the turret will do per shot to targets to Damage.
SetActivationRange 	Range:float 	Sets the range in meters at which the turret will activate to Range. This is clamped between 2.0 and 100.0 meters.
SetTargetRange 	Range:float 	Sets the range in meters at which the turret will target to Range. This is clamped between 2.0 and 100.0 meters. Setting it lower than 2m will disable Targeting.
</tabber>
Category:Devices
Category:UEFN
Category:Verse API