Use to create a sprite that players can trade in a weapon for a random legendary weapon or a custom item list.
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. |
Exposed Interfaces
This class exposes the following interfaces:
Name | Description |
---|---|
enableable |
Implemented by classes whose instances can be enabled and disabled. |
Members
This class has both data members and functions.
Data
Data Member Name | Type | Description |
---|---|---|
GrantTimerCompletedEvent |
listenable(payload) |
Triggers when the grant timer has completed.
Sends the triggering |
WeaponConsumedEvent |
listenable(payload) |
Triggers when a player gives the Earth Sprite a weapon.
Sends the triggering |
Functions
Function Name | Description |
---|---|
Disable |
Disable the device. |
DisableItemGranting |
Disable the device’s ability to grant items. Can still interact and consume weapons. |
DisableTradingForPlayer |
Prevents the |
Enable |
Enable the device, and resets all trade counts the Sprite is tracking. |
EnableItemGranting |
Enable the device’s ability to grant items. |
EnableTradingForPlayer |
Allows a |
GetTransform |
Returns the transform of the |
Hide |
Makes the Earth Sprite invisible. |
IsEnabled |
Succeeds if the device is enabled, fails if it's disabled. |
MoveTo |
Moves the |
MoveTo |
Moves the |
Show |
Makes the Earth Sprite visible. |
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |