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
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#8
RE: PlayMusicAtEntity

(11-13-2012, 03:07 PM)beecake Wrote: What kind of loop? The sound you are using is already looping isn't it? If it isn't then:

void area_scare_5(string &in asParent, string &in asChild, int alState)
{
AddTimer("LoopSound", 0, "LoopTimer");
}



void LoopSound(string &in asTimer)
{
if(asTimer == "LoopSound")
{
PlaySoundAtEntity ("", "scare_whine_loop3.snt", "Player", 0, true);

AddTimer("LoopSound", 5, "LoopTimer");

)
}
thank you. well yes "whine_loop" sounds like a loop to me too, but its not looping :/ but now it is Big Grin

if you could help me once again... Tongue i dont understand the wiki script examples... i tried to fade in a sound:

void area_scare_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, true);
PlaySoundAtEntity("", "break_glass_large.snt", "Player", 0, true);
FadeInSound ("", "ui_torture.snt", "Player", 0, true);
GiveSanityDamage(90.0f, true);
}

i know this is very wrong, because i dont understand what all this "string&" "float" "bool" is. the only thing i did in java is a hello world, thats wh i dont really get all this stuff
this is what the wiki says:
void FadeInSound(string& asSoundName, float afFadeTime, bool abPlayStart);

When you are looking for someone, to do the scripting for your Custom Story, ask me!
(This post was last modified: 11-13-2012, 03:25 PM by tonitoni1998.)
11-13-2012, 03:18 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: 1 Guest(s)