News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Help me out.  (Read 1409 times)

0 Members and 1 Guest are viewing this topic.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Help me out.
« on: August 16, 2015, 10:05:09 PM »
So how do I get a ped saying a mission speech wih subltitles and I want it to be like until the Speech has been played I tried
SoundPlayScriptedSpeechEvent(Derby,"M_3_06",1,"large",true)
repeat
 Wait(0)
until SoundSpeechPlaying(Derby,"M_3_06")
But that code is when the speech is playing. I want when the speech is played then it goes through the next part.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Help me out.
« Reply #1 on: August 17, 2015, 01:41:59 AM »
If you want the repeat loop to keep going until the sound is not playing then maybe until not SoundSpeechPlaying(Derby,"M_3_06") will work. That way the repeat will run until the sound is not playing.