ReferenceVerse
Item Granter
item granter
Updated
item-granter in ~90 seconds.A player slams the order button at The Jitterbean, and a legendary espresso-shotgun flies straight into their hands.
The item granter device handles this loadout drop, taking a specific index from your configured item list and beaming it directly to the agent who triggered it.
We wire a button device to our granter, subscribing to its interact event so that when a player presses it, we call GrantItemIndex to deliver the gear at slot zero.
Reach for the item granter device whenever you need to instantly beam a specific loadout or reward directly into a player's inventory.
jitterbean_cafe := class(creative_device):
@editable
OrderPad : button_device = button_device{}
@editable
EspressoGranter : item_granter_device = item_granter_device{}
OnOrder(Player : agent) : void =
EspressoGranter.GrantItemIndex(Player, 0)
OnBegin<override>()<suspends>:void =
OrderPad.InteractedWithEvent.Subscribe(OnOrder)
Build your own lesson with item-granter
Generate a personalized, compile-checked lesson grounded in this exact reference.
Build a lesson →