How do I make a custom Verse function assignable in the Details panel?

Unfortunately you CAN’T do that. Direct Event Binding only works between the fortnite creative devices. If you want to eg receive the spawn event from an npc_spawner that then triggers a function inside your verse device you’d have to do something like this and then connect the NPCSpawner to the “MyNPCSpawner” value

using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }

minimal_device := class(creative_device):
    @editable MyNPCSpawner : npc_spawner_device = npc_spawner_device{}
    OnBegin<override>()<suspends>:void=
           MyNPCSpawner.SpawnedEvent.Subscribe(TestFunction)
   TestFunction(Agent:agent):void=
          Print("AN NPC WAS SPAWNED")
    TestFunctionCall<public>() : void =
        Print("TestFunctionCall method called")  
1 Like