UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Calling multiple triggers from a GetEntArray

broken avatar :(
Created 5 years ago
by Gunrock12
0 Members and 1 Guest are viewing this topic.
698 views
broken avatar :(
×
broken avatar :(
Location: usIndiana, Indianapolis
Date Registered: 19 October 2014
Last active: 4 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Gunrock12's Groups
Gunrock12's Contact & Social Links
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;

        
      }
}



 
Loading ...