Hi,
I am currently learning Verse and I wanted to create a device that spawns all my item spawners at the start of the game, but with a little delay between each spawn, because else some items wouldn’t spawn. So I created this script using tags to select each of the item spawners, but no item is spawning, and I even tried using an editable array and selecting each item spawner manually. I also tried to remove the delay or make it bigger, but it didn’t work either. So here’s the code I used, and I hope someone can please help me out:
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Simulation/Tags }
itemSpawner := class(tag){}
item_spawners_device := class(creative_device):
@editable
teleporter: teleporter_device = teleporter_device{}
OnBegin<override>()<suspends>:void=
SpawnItems()
SpawnItems()<suspends>:void=
TaggedActors := GetCreativeObjectsWithTag(itemSpawner{})
Sleep(0.1)
for (TaggedActor : TaggedActors, ItemSpawner := item_spawner_device[TaggedActor]):
Sleep(0.1)
ItemSpawner.SpawnItem
Print("Spawned Item")