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
Kauren Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
Scripting voices

I have been working on a script to have voices in my custom story. Here's what I have:


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


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



And here's my lang file:
<LANGUAGE>
<CATEGORY Name="Subtitles">
<Entry Name="MeSpeaking">I need you to work god damnit!</Entry>
</CATEGORY>
</LANGUAGE>


Help is very much appreciated!
(This post was last modified: 03-11-2012, 01:45 PM by Kauren.)
03-11-2012, 01:38 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#2
RE: Scripting voices

Why would you post two threads abouts this..?
03-11-2012, 03:05 PM
Find
Kauren Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2012
Reputation: 0
#3
RE: Scripting voices

(03-11-2012, 03:05 PM)Traggey Wrote: Why would you post two threads abouts this..?
I made an error on the first post, tried to fix it. Ended up in a double post Confused
03-11-2012, 03:15 PM
Find
Kauren Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2012
Reputation: 0
#4
RE: Scripting voices

Still can't make it and help is still appreciated..
03-11-2012, 05:59 PM
Find
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




Users browsing this thread: 1 Guest(s)