So i’m building a wave system td styled game and i would like to control the amount of enemies i spawn per wave. I have my loop and counter set up properly but in both experimenting with spawner and placer i couldn’t find results. The issue with the placer is with Placer.Spawn the enemy once but the spawn loop continues. And the only thing i could find within the Spawner class is the function to enable the device which doesn’t necesarrily spawn the creatures.
I’ve been experimenting with something similar this may or not be of help but here is what I have.
I created a device with an [@]editable device eliminator and device wildlife spawner.
in my main device I reference the above ^
var wildLifeSpawners:[]something = array{}
I set all the devices ‘on game start’ to off so nothing starts until I call my ‘init’ method at the start of the game.
I keep a variable called ‘wave’ stored and based on an event (for right now just x amount of mob kills) I increase the wave count, disable the eliminator and wildlife spawners before enabling the new ones (based on wave so [0],[1],[3].
I have each eliminator and wildlife spawner setup with different mob types and I unsubscribe and re-subscribe to the elimination event when changing waves (I had an issue with the elimination event if I had more then one version of an eliminator device with same mob even if only one was enabled - event would trigger for all throwing off my wave counter)
I haven’t found a way to programmatically do much with the devices as far as setting properties…seems we can only invoke a few methods right now and only edit the properties on the device prior to runtime…otherwise I’d be using one instance I can configure at run time instead of the copy pasta nightmare (I may have missed something)
sorry for long post long story short I ended up for each wave creating its own device’s and configuring them for the loot, mob, mob health etc. (not very dynamic at all)
I can share some code snippets if this sounds like it would help but it sounds like you got it working for the most part and maybe running into UEFN current limitations.