Overview
The Button is a Device in Fortnite: Creative, added in Update v7.00.
All Settings
All Settings[]
All default values have been Bolded.
| Option | Value | Description |
|---|---|---|
| Interact Time | Instant, 0.25s - 20.0s | Determines the length of interaction required to activate the device. |
| Activating Team | Any, 1 - 100 | Determines which team can activate the device. |
| Trigger Sound | Enabled, Disabled | Determines whether a sound is played when the device is triggered. |
| Interaction Text | "Interact", {Custom Text} | Text that appears for players looking at the button. |
| Invert Team Selection | On, Off | If set, the device can be used by all but the selected team. |
| Allowed Class | No Class, Any, 1 - 254 | Determines which Class can activate the device. |
| Invert Class Selection | On, Off | If set, the device can be used by all but the selected class. |
| Times Can Trigger | Infinite, 1 - 10 | The number of times this device can trigger before being disabled. |
| Delay | Instant, 0.01s - 20m | Determines the length of time the device will wait between being triggered and sending a signal. |
| Reset Delay | Instant, 0.01s - 20m | Specifies the length of time the device must wait after being triggered before it can be triggered again. |
| Enabled At Game Start | Enabled, Disabled | Whether or not this device is enabled when the game is started. For use in conjunction with Transmitters / Receivers. |
| Visible During Game | Yes, No | Determines whether the device will be visible during the game. |
| Interaction Radius | Button, 0.01m - 2.5m | Allows players to interact by looking at any point within a radius of the specified size, rather than having to look directly at the button. Use in conjunction with the Visibility setting to make it appear as though players are interacting with other props. |
| Custom Mesh | None, Select a Static Mesh | Use a custom mesh instead of the button. Ensure your material has an 'Emissive' Vector Parameter in order to change the color based on button state. |
Functions and Events
Functions and Events[]
| Option | Description |
|---|---|
| Enable When Receiving From | Enables the device, allowing it to send Events to linked devices. |
| Disable When Receiving From | Disables the device, preventing it to sending Events to linked devices. |
| Option | Description |
|---|---|
| On Interact Send Event To | Sends an Event to linked devices when a player interacts with the device. |
button_device class
button_device class[]
using { /Fortnite.com/Devices }
| Option | Description |
|---|---|
creative_object
|
Base class for creative devices and props. |
creative_device_base
|
Base class for creative_device.
|
| Option | Type |
|---|---|
InteractedWithEvent
|
listenable(agent)
|
| Option | Parameters | Description |
|---|---|---|
Enable:void
|
Enables this device. | |
Disable:void
|
Disables this device. | |
SetInteractionText:void
|
Text:message
|
Sets the text that displays when an agent is close to this button and looks at it. Text is limited to 64 characters.
|
SetInteractionTime:void
|
Time:float
|
Sets the duration of the interaction required to activate this device (in seconds). |
GetInteractionTime:float
|
Returns the duration of the interaction required to activate this device (in seconds). | |
SetMaxTriggerCount:void
|
MaxCount:int
|
Sets the maximum amount of times this button can be interacted with before it will be disabled. MaxCount must be between 0 and 10. 0 indicates no limit on trigger count.
|
GetMaxTriggerCount:int
|
Returns the maximum amount of times this button can be interacted with before it will be disabled.GetTriggerMaxCount will be between 0 and 10. 0 indicates no limit on trigger count.
| |
GetTriggerCountRemaining:int
|
Returns the number of times that this button can still be interacted with before it will be disabled. Will return 0 if GetTriggerMaxCount is unlimited.
|