Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Random Looped Sound
Plazmater Offline
Member

Posts: 122
Threads: 24
Joined: Aug 2013
Reputation: 1
#9
RE: Random Looped Sound

This is from start:


void LanternEvent(string &in asEntity, string &in type)
{
AddPlayerLampOil(70.0f);

SetSwingDoorLocked("mansion_6", false, false);
PlayMusic("music_mansion_lanternpickup.ogg", false, 1.0f, 0, 0, true);
}


void FunctionTimer(string &in asTimer)
{
int iArea = RandInt(1, 3);
float fTime = RandFloat(5f, 7f);

PlaySoundAtEntity("afx_spooky_mansion_whisper"+iArea, "afx_spooky_mansion_whisper.snt", "ScriptArea_"+iArea, 0.0f, false);

AddTimer("TimerName", 1.0f+fTime, "FunctionTimer");
}
07-25-2014, 05:23 PM
Find


Messages In This Thread
Random Looped Sound - by Plazmater - 07-25-2014, 03:20 PM
RE: Random Looped Sound - by i3670 - 07-25-2014, 03:29 PM
RE: Random Looped Sound - by Plazmater - 07-25-2014, 04:16 PM
RE: Random Looped Sound - by Mudbill - 07-25-2014, 05:04 PM
RE: Random Looped Sound - by Plazmater - 07-25-2014, 05:10 PM
RE: Random Looped Sound - by Mudbill - 07-25-2014, 05:13 PM
RE: Random Looped Sound - by Plazmater - 07-25-2014, 05:17 PM
RE: Random Looped Sound - by Mudbill - 07-25-2014, 05:20 PM
RE: Random Looped Sound - by Plazmater - 07-25-2014, 05:23 PM
RE: Random Looped Sound - by i3670 - 07-25-2014, 07:28 PM
RE: Random Looped Sound - by Plazmater - 07-25-2014, 07:57 PM



Users browsing this thread: 1 Guest(s)