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
PlayMusicAtEntity
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: PlayMusicAtEntity

i should tell you how to stop it too... If you have this sound playing all through your game it will be very annoying!
This is how the script should look:


void LoopSound(string &in asTimer)
{
if(asTimer == "LoopSound")
{
if(GetLocalVarInt("StopLoopSound") == 1)
{
return;
}
PlaySoundAtEntity ("", "scare_whine_loop3.snt", "Player", 0, true);
AddTimer("LoopSound", 5, "LoopTimer");
}
}


Then if you want to stop the loop you just make a script that calls: SetLocalVarInt("StopLookSound", 1);



For the fade in sound:

This line can fade in sounds: PlaySoundAtEntity("", "break_glass_large.snt", "Player", 0, true);

The 0 determines how many seconds it should fade, until it has reached full volume

string = Letters
float = Numbers
bool = True or false

You might want to see this too: http://www.frictionalgames.com/forum/thread-18368.html

Trying is the first step to success.
(This post was last modified: 11-13-2012, 03:33 PM by FlawlessHappiness.)
11-13-2012, 03:27 PM
Find


Messages In This Thread
PlayMusicAtEntity - by tonitoni1998 - 11-12-2012, 06:33 PM
RE: PlayMusicAtEntity - by The chaser - 11-12-2012, 07:46 PM
RE: PlayMusicAtEntity - by FlawlessHappiness - 11-12-2012, 07:49 PM
RE: PlayMusicAtEntity - by The chaser - 11-12-2012, 08:18 PM
RE: PlayMusicAtEntity - by Adny - 11-12-2012, 07:49 PM
RE: PlayMusicAtEntity - by tonitoni1998 - 11-13-2012, 02:54 PM
RE: PlayMusicAtEntity - by FlawlessHappiness - 11-13-2012, 03:07 PM
RE: PlayMusicAtEntity - by tonitoni1998 - 11-13-2012, 03:18 PM
RE: PlayMusicAtEntity - by FlawlessHappiness - 11-13-2012, 03:27 PM
RE: PlayMusicAtEntity - by tonitoni1998 - 11-13-2012, 04:08 PM



Users browsing this thread: 3 Guest(s)