Campfire Device

The Campfire is a Device in Fortnite: Creative, added in Update v17.40. 
<tabber>
|-|Settings=
==All Settings==
===Contextual Filtering===
This device is affected by Contextual Filtering; This feature hides or displays options depending on the values selected for certain related options.
All default values have been Bolded.
Option 	Value 	Description
Start Lit 	Yes, No 	Whether or not the campfire is lit from the start of the match.
Can Be Lit 	Yes, No 	Whether or not the campfire can be lit by interacting with it.
Can Be Extinguished 	Yes, No 	Whether or not the campfire can be extinguished by interacting with it.
Can Be Stoked 	Yes, No 	Determines if more fuel can be added to the Campfire while it is lit.
Campfire Zone Size 	7.68 Meters, 2.5 Meters - 25.0 Meters 	Size of the zone that affects Players and Hostile AI.
Health Per Pulse 	2, 0 - 100 	Amount of health gained per second by each player within range.
Uses Wood 	Yes, No 	Whether or not the campfire requires wood to be used.
Wood Consumption Per Pulse 	1, 0.1 - 50 	Amount of wood used per second to keep the campfire lit.
Max Wood Capacity 	30, 0 - 500 	The maximum wood capacity that the campfire can take.
Starting Wood 	30, 0 - 500 	The amount of wood that the campfire starts with, capped to the value of "Max Wood Capacity".
Wood To Add On Trigger 	10, 0 - 500, Maximum 	The amount of wood to add to the campfire when the "Add Wood When Receiving On" channel is triggered.
Can Affect Vehicles 	Yes, No 	Allows vehicles to trigger campfire events and be affected by the pulse.
Affects AI 	No Effect, Repel, Damage, Repel & Damage 	Determines what a Campfire does to creatures and wildlife that enter the zone.
AI Damage Per Pulse 	2, 0 - 100 	Amount of damage dealt per second to each affect AI within range.
Use Advanced Lighting 	Yes, No 	Enables advanced lighting on the campfire.
Time to Light 	1.0 Second, Instant - 10 Seconds 	The length of time it takes to light the campfire.
Time to Extinguish 	1.0 Second, Instant - 10 Seconds 	The length of time it takes to extinguish the campfire.
Pulse Interval 	1.0 Second, 0.5 Seconds - 10.0 Seconds 	The time duration between campfire Pulses.
Interacting Team 	None, All, 1 - 100 	The team that is allowed to interact with the campfire.
Invert Interacting Team Selection	On, Off 	If set, the selected Interacting Team is the only one that cannot interact with the Device.
Affected Team 	None, All, 1 - 100 	The team that will be affected by the campfire's pulse.
Invert Interacting Team Selection	On, Off 	If set, the selected Affected Team is the only one that cannot be affected by the Device.
Interacting Class 	No Class, Any, 1 - 254 	The class that is allowed to interacted with the campfire.
Affected Class 	No Class, Any, 1 - 254 	The class that will be affected by the campfire's pulse.
Affects Creatures 	Do Not Override, No Effect, Repel, Damage, Repel & Damage	Determines how the Campfire should affect Creatures that enter the area. This setting will override Affects AI if set.
Affects Predators 	Do Not Override, No Effect, Repel, Damage, Repel & Damage	Determines how the Campfire should affect Wildlife Predators that enter the area. This setting will override Affects AI if set.
Enabled During Phase 	None, Always, Pre-Game Only, Gameplay Only, Create Only 	Determines in which phases the campfire is enabled. 
Pre-Game includes all phases prior to the Game Starting (the waiting for players lobby on Featured Islands and the Game Start Countdown).
|-|Functions and Events=
== Functions and Events==
Option 	Description
Light When Receiving From 	Campfire will light when receiving from this channel.
Extinguish When Receiving From	Campfire will extinguish when receiving from this channel.
Add Wood When Receiving From 	Wood will be added to the fire equal to the value set in "Wood To Add On Trigger" when receiving from this channel.
Enable When Receiving From 	Enables the Device when receiving from this channel.
Disable When Receiving From 	Disables the Device when receiving from this channel.
Option 	Description
On Lit Send Event To 	When campfire is lit, transmit on this channel.
On Extinguished Send Event To 	When campfire is extinguished, transmit on this channel.
On Entering Area Send Event To 	When a player enters the campfire area, transmit on this channel.
On Leaving Area Send Event To 	When a player leaves the campfire area, transmit on this channel.
On Campfire Pulse Send Event To	When the lit campfire pulses, transmit on this channel.
On Player Pulsed Send Event To 	For each player affected by a campfire pulse, transmit on this channel.
On Enabled Send Event To 	When enabled, transmit on this channel.
On Disabled Send Event To 	When disabled, transmit on this channel.
|-|Verse API=
This device can be found in Content Browser in the following path: /All/Fortnite/Devices/Gameplay
==campfire_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
AgentEntersEffectAreaEvent	listenable(agent)
AgentExitsEffectAreaEvent 	listenable(agent)
CampfirePulseEvent 	listenable(agent)
AgentPulsedEvent 	listenable(agent)
LitEvent 	listenable(agent)
ExtinguishedEvent 	listenable(agent)
EnabledEvent 	listenable(tuple())
DisabledEvent 	listenable(tuple())
Function 	Parameters 	Description
Enable:void 	 	Enables this device.
Disable:void 	 	Disables this device.
AddWood:void 	 	Adds wood to this device.
Light:void 	Agent:agent	Lights this device.
Extinguish:void	Agent:agent	Extinguishes this device.
|-|How-To Example=
===Campfire Fueled by Planks:===
You will need: 
*Conditional Button
*Campfire Device
*Timer Device
How to set up: 
*Place your Campfire device
**Set Can Be Lit and Can Be Extinguish to No 
*Place your Conditional Button and set the Interact Radius to the size of the Campfire
**Set the Interact Time on the Conditional Button to 2 Seconds and set the Visible During Game to Hologram Only
**Search for an item suited for a Campfire, (EG: Planks) and drop it into the Conditional Button 
* Place your Timer Device
** Set Audio Effects to Off, Visible During Game to Hidden, Duration to 15 Seconds, and Completion Behavior to Reset.
*Within the Conditional Button
**Add an Event to On Activated Send Event To and select your Campfire as the Device and the Function to Light
* Within the Campfire
**Add 2 Events to On Lit Send Event To and select your Timer Device as the Device and the Function to Start, and then Conditional Button as the Device and the Function to Toggle 
*Within the Timer Device
**Add 2 Events to On Success Send Event To and select your Conditional Button as the Device and the Function to Toggle, and then Campfire as the Device and the Function to Extinguish.
*Start the game to test it.
</tabber>
Category:Devices
Category:UEFN
Category:Creative
Category:Verse API