ReferenceVerse
Grant Effect To Player
grant effect to player
Updated
grant-effect-to-player in ~90 seconds.One step on the Golden Hour Jetty and a glowing speed potion flies straight into your hands.
This happens because a trigger device catches your footprint and tells an item granter device to deliver the goods, which can also cycle to random loot or grant items to the whole team.
We subscribe to the trigger's event, unwrap the stepping agent, and call GrantItem to beam the gear right to them.
Reach for the item granter device whenever you need to hand out weapons, tools, or powerups mid-match.
jetty_grant := class(creative_device):
@editable
Plate : trigger_device = trigger_device{}
@editable
Granter : item_granter_device = item_granter_device{}
OnStepped(Agent : ?agent) : void =
if (A := Agent?):
Granter.GrantItem(A)
OnBegin<override>()<suspends>:void =
Plate.TriggeredEvent.Subscribe(OnStepped)
Build your own lesson with grant-effect-to-player
Generate a personalized, compile-checked lesson grounded in this exact reference.
Build a lesson →