Used to create a specialized button which can only be activated when agent
s are carrying specific items.
Verse using statement |
using { /Fortnite.com/Devices } |
Inheritance Hierarchy
This class is derived from the following hierarchy, starting with creative_object
:
Name | Description |
---|---|
creative_object |
Base class for creative devices and props. |
creative_device_base |
Base class for creative_device. |
Members
This class has both data members and functions.
Data
Data Member Name | Type | Description |
---|---|---|
ActivatedEvent |
listenable(payload) |
Signaled when this device is activated.
Sends the |
NotEnoughItemsEvent |
listenable(payload) |
Signaled when this device fails to activate because |
Functions
Function Name | Description |
---|---|
Activate |
Activates this device. |
Disable |
Disables this device. |
Enable |
Enables this device. |
GetInteractionTime |
Returns the time (in seconds) that an interaction with this device will take to complete. |
GetItemCount |
Returns how many items an |
GetItemCountRequired |
Returns the total quantity of a specific key item type that needs to be collected in order to activate the switch. |
GetItemScore |
Returns the score to be awarded for a key item. |
GetRemainingItemCountRequired |
Returns the remaining quantity of a specific key item type that needs to be collected in order to activate the switch. |
GetTransform |
Returns the transform of the |
HasAllItems |
Returns if the |
IsHoldingItem |
Returns if the |
IsHoldingItem |
Returns if the |
MoveTo |
Moves the |
MoveTo |
Moves the |
Reset |
Resets this device to its original settings. |
SetInteractionText |
Sets the text that appears when |
SetInteractionTime |
Sets the time (in seconds) that an interaction with this device should take to complete. |
SetItemCountRequired |
Sets the quantity of a specific key item type that needs to be collected in order to activate the switch.
|
SetItemScore |
Sets the score to be awarded for a key item. |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |
Toggle |
Toggles the conditional button state. |