I'm having issues disabling the barrier devices using the timed_objective_device.

I’m having issues disabling the barrier devices using the timed_objective_device .

2024-09-25 15 35 58

I tried to disable the barrier devices after 3 seconds, but it’s not working.

Please help me.

Below is the Verse code.


using { /Fortnite.com/Devices }
using { /Verse.org/Native }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }


box_fight_log:=class(log_channel){}

boxfight := class(creative_device):

    Logger:log = log{Channel:=box_fight_log}
    @editable
    Barrier1:barrier_device = barrier_device{}
    @editable
    Barrier2:barrier_device = barrier_device{}
    @editable
    MidBarrier:barrier_device = barrier_device{}
   @editable
    Timer:timer_device = timer_device{}
    @editable
    Timed:timed_objective_device=timed_objective_device{}


    
    OnBegin<override>()<suspends>:void=
        Print("Onbegin")
   
      Timed.CompletedEvent.Subscribe(DropBarriers)


    DropBarriers(Player:agent):void =
        Print("DropBarriers called")
        Barrier1.Disable()
        Barrier2.Disable()
        MidBarrier.Disable()