seb33
New Member
Posts: 17
Posts: 17
|
Post by seb33 on Apr 29, 2018 19:30:50 GMT
Hi I have a global wave spawning enemies. Is there a built in method to despawn them after a set time interval? Secondly I'm having issue trying to subscribe to wave start events. I can see an option to fire custom event on wave completion but not on start?
Thanks for any advice
|
|
|
Post by DarkTonic Dev on Apr 29, 2018 19:44:00 GMT
There's an option in Killable under Despawn & Despawn trigger called Use Death Timer. You can use that. Or if you don't use Killable, use Timed Despawner component.
You don't subscribe to events in CGK. You use Listener classes. The LevelSettingsListener has a WaveStarted method you can add code to, or use the Playmaker version of it. Consult the online documentation for how to use Listeners, it's easy.
|
|
seb33
New Member
Posts: 17
Posts: 17
|
Post by seb33 on May 1, 2018 16:17:22 GMT
Great, thanks
|
|
|
Post by DarkTonic Dev on May 1, 2018 16:52:19 GMT
Any time.
|
|