therook
New Member
Posts: 5
Posts: 5
|
Post by therook on Nov 4, 2015 16:57:42 GMT
How do I despawn everything spawned during a wave at the end of that wave?
For example I want round 4 to end, but a few things stick around that are hooked up to different spawners. So I figured that despawning everything attached to a spawner on wave end would work perfectly.
Thanks a ton for your time and for this plug in, it's a life saver.
|
|
|
Post by DarkTonic Dev on Nov 5, 2015 6:24:21 GMT
There's an EliminationWaveCompleted method in the WaveSyncroSpawnerListener class that you could use if it's a global elimination wave. Then you could add code to Despawn all of whatever item spawns from spawner X, assuming it only spawns from that particular spawner (PoolBoss method).
Or you could get the collection of items spawned from the WaveSyncroPrefabSpawner class, property: SpawnedWaveMembers and despawn them all in a loop from Poolboss.
|
|