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
Script Help Subtitles
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: Subtitles

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

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

That function play a voice and you can specify the category and entry name for the subtitles. The subtitles will last as long as the voice file does.

In Ruins [WIP]
04-14-2013, 08:18 AM
Find


Messages In This Thread
Subtitles - by Cyphermur9t - 04-14-2013, 07:17 AM
RE: Subtitles - by NaxEla - 04-14-2013, 08:18 AM



Users browsing this thread: 1 Guest(s)