Used to grant items to agents. Items can either be dropped at the agent's location or added directly to their inventory.
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 |
|---|---|---|
DefaultItemCount |
?int |
Gets or sets the default number of items that will be awarded for all items in the Item Granter that have not been overwritten.
|
GrantItemWithCountEvent |
listenable(payload) |
Signaled when an item is granted to an |
ItemGrantedEvent |
listenable(payload) |
Signaled when an item is granted to an |
Functions
| Function Name | Description |
|---|---|
ClearSaveData |
Clears saved data for |
CycleToNextItem |
Cycles to the next item. If Grant on Cycle is set |
CycleToPreviousItem |
Cycles to the previous item. If Grant on Cycle is set |
CycleToRandomItem |
Cycles to a random item. If Grant on Cycle is set |
Disable |
Disables this device. |
Enable |
Enables this device. |
GetItemGrantCountAtIndex |
Returns the number of items this Item Granter will award for the item at the specified |
GetItemIndex |
Returns the current Item Index that this device will grant when activated. |
GetTransform |
Returns the transform of the |
GrantItem |
Grants an item to |
GrantItemIndex |
Grants an item at a specific |
GrantItemIndex |
Grants an item at a specific |
GrantItemToAll |
Grants an item without requiring an agent reference. This only works when Receiving Players is set to All or Team Index. |
MoveTo |
Moves the |
MoveTo |
Moves the |
RestockItems |
Restocks this device back to its starting inventory count. |
SetItemGrantCountAtIndex |
Sets the number of items this Item Granter will award for the item at the specified |
SetNextItem |
Sets the next item to be granted.
|
TeleportTo |
Teleports the |
TeleportTo |
Teleports the |