AOC_PRC8/_module/nss/crowd.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

41 lines
601 B
Plaintext

void CrowdPlay(int oSwitch)
{
object oTarget;
int i;
string oSound;
string oAdd;
for (i = 0; i < 12; i++)
{
oSound = "crowd_";
oAdd = IntToString(i);
oSound+=oAdd;
if (oSwitch==1)
{
SoundObjectPlay(GetObjectByTag(oSound));
}
else
{
SoundObjectStop(GetObjectByTag(oSound));
}
}
}
void CrowdBurst()
{
object oTarget;
int i;
string oSound;
string oAdd;
for (i = 0; i < 12; i++)
{
oSound = "crowd_";
oAdd = IntToString(i);
oSound+=oAdd;
SoundObjectPlay(GetObjectByTag(oSound));
}
DelayCommand(10.0, CrowdPlay(2));
}
//void main(){}