|
Post by beowulfkaine on Nov 30, 2017 7:54:55 GMT
So I have repeat wave configured in which it obviously repeats waves, however, I also want to have custom events fired off after each of these waves are repeated. However, I am not seeing it happen when I have this option of repeat mode endless. Am I doing something wrong with this setup?
|
|
|
Post by DarkTonic Dev on Nov 30, 2017 18:47:23 GMT
Are you talking about the Repeat Wave section on one of the spawners in your wave? That has a section for Repeat Custom Events. Is that what you used? Please clarify before I try to reproduce.
|
|
|
Post by beowulfkaine on Nov 30, 2017 20:49:27 GMT
Are you talking about the Repeat Wave section on one of the spawners in your wave? That has a section for Repeat Custom Events. Is that what you used? Please clarify before I try to reproduce. Yes, there is a screenshot of my setup: 
|
|
|
Post by beowulfkaine on Dec 1, 2017 5:38:42 GMT
Any ideas on what I may be doing wrong?
|
|
|
Post by DarkTonic Dev on Dec 1, 2017 5:49:20 GMT
I tried on Example Scene #1 with your screen shot settings and it worked just fine for me. Are you sure you have any listeners for that Custom Event? What does the Inspector for LevelWaveSettings say next to that Custom Event at runtime. It will say "Receivers: 1" or something.
If it's zero, then nothing will happen when the Custom Event fires. Also, you can check the "Log Messages" checkbox at the top of the Inspector so it will log to the Console when it fires the event.
|
|
|
Post by beowulfkaine on Dec 1, 2017 6:32:50 GMT
I tried on Example Scene #1 with your screen shot settings and it worked just fine for me. Are you sure you have any listeners for that Custom Event? What does the Inspector for LevelWaveSettings say next to that Custom Event at runtime. It will say "Receivers: 1" or something. If it's zero, then nothing will happen when the Custom Event fires. Also, you can check the "Log Messages" checkbox at the top of the Inspector so it will log to the Console when it fires the event. here is the strange thing. It does say zero, however, there is a listener on it and it has a PMN listener script attached.  ![]()  I even turned everything on just to make sure I had everything covered for testing
|
|
|
Post by DarkTonic Dev on Dec 1, 2017 16:45:57 GMT
That's not a Custom event receiver. It's a Level Settings Listener. Custom event receivers are only on Triggered spawners and another script. Please read the Custom events docs.
|
|
|
Post by beowulfkaine on Dec 1, 2017 18:57:09 GMT
That's not a Custom event receiver. It's a Level Settings Listener. Custom event receivers are only on Triggered spawners and another script. Please read the Custom events docs. That's so weird because when I use this exact setup with playmaker and normal waves instead of endless, it works perfectly. however, using this method I have to manually make waves. I just read the section of the manual and it reads to my understanding the way I have it setup now?
|
|
|
Post by DarkTonic Dev on Dec 1, 2017 19:22:33 GMT
If it works when not using repeat wave, that's just because the LevelWaveSettings game object is firing events (not Custom Events) to your Listener script there. Which has nothing to do with any Custom Event. But yes it will do things at certain points (wave start / wave end and all those other headings there). But yeah I don't see any heading for "wave repeat".
I don't think you want to actually use Custom Events - what do you need them for? What do you want to happen each time the wave repeats?
|
|
|
Post by beowulfkaine on Dec 1, 2017 19:26:33 GMT
Well, essentially it's pretty basic. Its a wave shooter, when the game starts a score and wave# window pops up, at the start of the wave it enables it for a few seconds, then disables it. That's essentially how I had done it with doing manual waves. But now I want to change to endless waves mode and have the same things happen. I'm using playmaker so its pretty handy, but for some reason I'm getting confused with the playmaker actions and the hookup scripts
|
|
|
Post by DarkTonic Dev on Dec 1, 2017 19:40:07 GMT
There's no repeat wave method on the LevelWaveSettingsListener because global waves do not repeat. Spawner waves that use that wave do.
So if you use the Playmaker version of WaveSyncroSpawnerListener, you'll see a Wave Repeat section where you can tell a FSM to fire a Playmaker event. Hopefully you only have one spawner in that wave or it might get messy.
|
|
|
Post by beowulfkaine on Dec 1, 2017 19:50:42 GMT
I think I may just be getting all of these confused, they playmaker listener and the other. Can you take a picture of the listener that I need use so I can find it easier?
|
|
|
Post by DarkTonic Dev on Dec 1, 2017 19:53:05 GMT
You just need the name of the script so you can add it to your spawner, not a picture.
It's called: Wave Syncro Spawner Playmaker Listener
|
|