UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Topic started by: Gunrock12 on January 09, 2019, 06:54:43 pm

Title: Calling multiple triggers from a GetEntArray
Post by: Gunrock12 on January 09, 2019, 06:54:43 pm
I can't get my multiple triggers with the same targetname to work! it works fine if it
is a simple GetEnt but as soon as i changed it into a GetEntArray all triggers fail to activate.

I almost got this solved! any help is appreciated thank you.


function soundbox1()////////PLAYS SOUND LOOP WHILE PLAYER IS IN THE TRIGGER


{

 



soundbox1_trig = GetEntArray( "area_sound1","targetname" );


soundbox1_trig waittill("trigger", player);


players = GetPlayers();
for (i = 0; i < players.size; i++)

              

   

   

             while(1)

   
            {

    

   

         

      
                    while(!(players istouching(soundbox1_trig)))

       

           

           
                   
                  wait 0.5;

       

       

       

           

         
  

               iprintlnbold("playing sound");

           
               players PlayLoopSound( "jack" );

           

            

            wait 8;

        
      }
}