generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
40
_module/nss/crowd.nss
Normal file
40
_module/nss/crowd.nss
Normal file
@@ -0,0 +1,40 @@
|
||||
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(){}
|
||||
Reference in New Issue
Block a user