playMaker

Author Topic: fmod play one shot not working properly  (Read 1010 times)

Dustiwi

  • Playmaker Newbie
  • *
  • Posts: 28
fmod play one shot not working properly
« on: September 06, 2022, 12:47:47 PM »
Hi, im having trouble playing this vey specific one shot, its basically a prefab that im spawning and i need the sound to be played as it spawns, weird thing is, when it spawns it doesnt play the sound. i have another one shot play on the hit state, that one works fine, but the sound im trying to play always plays after the hit event when  it goes to destroy, if i disable the play one shot from the listener, the audio doesnt play after the hit, so the audio is playing, just in the wrong order, i also made another FSM to play that spawn audio, i have a 0.1 sec wait cuz i thought it didnt have enough time to play the audio, but that doesnt seem to work either, looks like the audio that i want to play when spawning only plays when the object is destroyed, pls help D:

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: fmod play one shot not working properly
« Reply #1 on: September 07, 2022, 01:19:06 AM »
hi.
Are these actions included with the asset?

If so, maybe its best to ask on their forum :)

but if the audio component is on the object, you need to keep the object alive until sound ends. (you can for example disable fsm's / colliders / etc during that audio)
« Last Edit: September 07, 2022, 01:21:08 AM by djaydino »

Dustiwi

  • Playmaker Newbie
  • *
  • Posts: 28
Re: fmod play one shot not working properly
« Reply #2 on: September 07, 2022, 02:40:54 PM »
yes de action are included, i will try your suggestions, thank you very much