using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
reward_giver := class(creative_device):
@editable
Granter : item_granter_device = item_granter_device{}
# We'll see in the events series WHERE this Player comes from.
# For now: GiveReward needs an agent, and hands it straight on.
GiveReward(Player : agent) : void =
# Grant the granter's configured item to THIS player.
Granter.GrantItem(Player)
Verse Library
verse
03 Device
Provides a reusable function to grant configured items from a Creative Device to a specific player.
verse-library/verse-devices-functions/03-device.verse