Can't enable (or destroy) a creature_spawner_device with verse

I can’t seem to enable (or destroy) a creature_spawner_device with verse. I’m currently using trigger devices as a bit of a clunky workaround. Am I not doing something that the trigger devices do or is this a bug?

    InitCreatureSpawners():void=
      Print("InitCreatureSpawners Called", ?Duration := 10.0, ?Color := NamedColors.Red)
      CreatureSpawners := GetCreativeObjectsWithTag(creature_spawner{})
      for (Obj : CreatureSpawners):
        if (CreatureSpawner := creature_spawner_device[Obj]):
          Print("Adding Creature Spawner to Array", ?Duration := 10.0, ?Color := color{R := 255.0, G := 0.0, B:= 0.0})
          set CreatureSpawnersArray = CreatureSpawnersArray + array{CreatureSpawner}
          Print("Testing Direct Enable", ?Duration := 10.0, ?Color := color{R := 255.0, G := 0.0, B:= 0.0})
          CreatureSpawner.Enable()
2 Likes

I’m experiencing this bug as well. I’ve tried various things… using verse to enable/disable creature_spawner_device doesn’t seem to be working

Destroy works, but enable does not. I used a trigger_device for each spawner as a workaround - which is tedious and consumes more memory. I’ve also had to use the trigger_device in other cases where functions or events were not working.

I’m also experiencing this.

I figured this out! I was confused because I had one project where using .Enable would work and another where it didn’t, and found that you have to have “enabled on game start” ON in order for .enable to work in verse code