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;
}
}