# verse OnButtonInteractedWith handler error

**URL:** <https://forums.unrealengine.com/t/verse-onbuttoninteractedwith-handler-error/859733>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, crash, fortnite-creative, question, fortnite\
**Created:** [April 6, 2023, 8:14am UTC](https://forums.unrealengine.com/t/verse-onbuttoninteractedwith-handler-error/859733 "2023-04-06T08:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Power\_Jin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/power_jin/32/88718_2.png) [@Power\_Jin](https://forums.unrealengine.com/u/Power_Jin)\
**Post date:** [April 6, 2023, 8:14am UTC](https://forums.unrealengine.com/t/verse-onbuttoninteractedwith-handler-error/859733/1 "2023-04-06T08:14:42Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/c/40c88b9225914c88a3ad7b2c1e5351dbfc6fe101.png)  
Hello, I am following the coding-device-interactions-in-verse watch of the verse tutorial. However, the OnButtonInteractedWith hander must be agent-\>void, and the OnButtonInteractedWith function parameter must be received as a tuple. I followed the instructions in the document, but it fails as above. Can someone please explain?

---

<div class="post-metadata">

**Author:** ![lwillsl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lwillsl/32/651027_2.png) [@lwillsl](https://forums.unrealengine.com/u/lwillsl)\
**Post date:** [April 6, 2023, 11:31am UTC](https://forums.unrealengine.com/t/verse-onbuttoninteractedwith-handler-error/859733/2 "2023-04-06T11:31:25Z")

</div>

The type of the value must me agent (I guess the tutorial is outdated) while in your case it’s not.  
Also from what I remember SpawnItem() doesn’t take any parameters.

```auto
OnBegin<override>()<suspends> : void =
    Button.InteractedWithEvent.Subscribe(OnButtonInteractedWith)

OnButtonInteractedWith(Player:agent):void=
    ItemSpawner.SpawnItem()

```

---

<div class="post-metadata">

**Author:** ![Power\_Jin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/power_jin/32/88718_2.png) [@Power\_Jin](https://forums.unrealengine.com/u/Power_Jin)\
**Post date:** [April 6, 2023, 12:04pm UTC](https://forums.unrealengine.com/t/verse-onbuttoninteractedwith-handler-error/859733/3 "2023-04-06T12:04:57Z")

</div>

Thank you for answer.

Are you aware of this problem?

I need to use multidimensional array  
It is said that Unreal Editor does not support it.

Error: The editable attribute does not yet support multidimensional arrays  
Uploading: image.png…
