Results 1 to 4 of 4

Thread: play Multiple sounds

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    play Multiple sounds

    Hi how to play sounds after each other?
    PHP Code:
                self PlaySoundAtLocation("MP_bomb_plant"self.origin1);
                
    iprintlnbold("sound 1");
                
    wait 1;

                
    self PlaySoundAtLocation("MP_bomb_plant"self.origin1);
                
    iprintlnbold("sound 2");
                
    wait 1;

                
    self PlaySoundAtLocation("MP_bomb_plant"self.origin1);
                
    iprintlnbold("sound 3"); 
    PHP Code:
    PlaySoundAtLocation(soundlocationiTime)
    {
        
    org spawn("script_model"location);
        
    wait 0.05;
        
    org show();
        
    org playSound(sound);
        
    iprintlnbold("playsound");
        
    wait iTime;
    iprintlnbold("iWAIT");
            
    org delete();
        
    iprintlnbold("org delete");

        
    iprintlnbold("Sound done");

       return;

    It only shows the sound 1 and after that, it shows playsound. The iWAIT isnt showing. So it doesnt play the rest of the sounds.
    Even if i do
    PHP Code:
                self playSound("MP_bomb_plant");
                
    iprintlnbold("sound 1");
                
    wait 1;

                
    self playSound("MP_bomb_plant");
                
    iprintlnbold("sound 2");
                
    wait 1;

                
    self playSound("MP_bomb_plant");
                
    iprintlnbold("sound 3");
                
    wait 1
    It only plays the first sound and the message sound 1

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    fixed .

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Just tell your fix for others.
    timescale 0.01

  4. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Mistake in loop function. Needed to remove an endon

  5. The Following User Says Thank You to Ni3ls For This Useful Post:

    kung foo man (13th December 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •