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
Talking in CS
SniperMajor Offline
Junior Member

Posts: 2
Threads: 2
Joined: Nov 2012
Reputation: 0
#1
Talking in CS

Hello!

How can you make a sequence, where a person is talking to you and there are subs like in the main game?


-Greatings
12-01-2012, 01:08 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#2
RE: Talking in CS

These are the scripts you will want to use. First script is used to play a voice with a subtitle, and second script will allow you to play another line after one is finished.

void AddEffectVoice(string& asVoiceFile, string& asEffectFile, string& asTextCat, string& asTextEntry,
bool abUsePosition, string& asPosEntity, float afMinDistance, float afMaxDistance);


This adds a voice and an effect to be played. It is okay to call this
many times in order to play many voices in a row. The
EffectVoiceOverCallback is not called until ALL voices have finished.

asVoiceFile - the voice to play
asEffectFile - the effect to play
asTextCat - the category in the .lang file
asTextEntry - the text entry in the .lang file
abUsePosition - plays using 3D from the entity, or without 3D
asPosEntity - the entity at which the effect appears
afMinDistance - minimum distance to see the effect
afMaxDistance - maximum distance to see the effect

void SetEffectVoiceOverCallback(string& asFunc);

Sets the function to be called when the EffectVoices are finished.
Callback snytax: void MyFunc()

12-01-2012, 04:20 PM
Find




Users browsing this thread: 1 Guest(s)