Oshigawa
Full Member
Posts: 228
Posts: 228
|
Post by Oshigawa on Jun 7, 2016 12:43:38 GMT
Hi, first of all i have to say that i recently bought AAA sound solution, and it' great (great as CGK is). I have a small problem to solve. I've set up the sound to play on enemy despawn, but the enemy also despawns when it's not killed (triggered death timer that activates offscreen) and thus, the explosion is heard from an object exploding out of camera viewpoint. I've read the documentation and i didn't find the answer. Any solution?
|
|
|
Post by DarkTonic Dev on Jun 7, 2016 16:23:22 GMT
You'll need to write code for this one. Since I know you're using Core Gamekit, you'll want to write code for OnDespawned method. You can check the IsDead property of the Killable component there and play a sound only if true.
|
|
Oshigawa
Full Member
Posts: 228
Posts: 228
|
Post by Oshigawa on Jun 7, 2016 18:13:47 GMT
Great, i'll try it, thanks!
|
|
|
Post by DarkTonic Dev on Jun 7, 2016 18:20:13 GMT
No problem.
|
|