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
Scripting voices
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#5
RE: Scripting voices

when you ask help me, please enable your private message sending next time...

Here is your answer:

Quote:void OnStart()
{
AddTimer("Test", "5.0f", "Intro_1");
}

void Intro_1(string &in asTimer)
{
AddEffectVoice("MeSpeaking.ogg", "", "Subtitles", "MeSpeaking", false, "", 0, 0);
}


Ur AddEffectVoice is set up incorrectly.

Firstly, you haven't set up the entity, where you want it to be played.

Secondly, your sound range is both 0. I recommend using minimum range something like 4 and max 16, but it depends from distance and if you can move around.

Here is example how I used it at one place:

AddEffectVoice("death1.ogg", "", "Subtitles", "Ideath1", true, "hanging_lantern_ceiling_chain_1", 4, 16);

The Interrogation
Chapter 1

My tutorials
03-12-2012, 07:03 PM
Find


Messages In This Thread
Scripting voices - by Kauren - 03-11-2012, 01:38 PM
RE: Scripting voices - by Traggey - 03-11-2012, 03:05 PM
RE: Scripting voices - by Kauren - 03-11-2012, 03:15 PM
RE: Scripting voices - by Kauren - 03-11-2012, 05:59 PM
RE: Scripting voices - by Elven - 03-12-2012, 07:03 PM



Users browsing this thread: 1 Guest(s)