Frictional Games Forum (read-only)
[REQUEST] Subtitles! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+--- Thread: [REQUEST] Subtitles! (/thread-11860.html)



Subtitles! - Henriksen - 12-14-2011

Hi, I was wondering how I make subtitles.



RE: Subtitles! - Dyloo - 12-14-2011

If you want a subtitles to be shown with a voice effect, use this:

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


Otherwise, you can just display a message on the screen:

void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);

Anyway, I recommend you checking this site:
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#screen_effects