Does the down_but_not_out_device work for npc's ?

@Maquisse @brs-sebascova It actually IS possible, I was shocked to find out too, but they can be revived from the DBNO state with the DBNO Device.

The code being used is the following

hello_world_device := class(creative_device):

    @editable NPCSpawner : npc_spawner_device = npc_spawner_device{}
    @editable DBNODevice : down_but_not_out_device = down_but_not_out_device{}
    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
        NPCSpawner.SpawnedEvent.Subscribe(Testing)


    Testing(Agent:agent):void=spawn. Testing2(Agent)
    Testing2(Agent:agent)<suspends>:void=
        loop:
            Sleep(3.0)
            Print("TESTING")
            DBNODevice.Revive(Agent)
1 Like