OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ahmed117 on 17 Dec 2011, 16:55:50

Title: How to add proper subtitles?
Post by: ahmed117 on 17 Dec 2011, 16:55:50
Hiya guys,
             I was wondering when I was making a face to face communication of two characters in a mission, that what is the most proper way to add subtitles in the cut scene or simple communication,Except the effect column of triggers or waypoints, the problem is that I am using a script.sqs file for the communication, so is there any code to write in the script for subtitles?

Regards:
Ahmed Azher (A.rogers)
Title: Re: How to add proper subtitles?
Post by: Aldo15 on 17 Dec 2011, 18:08:48
The code is "titletext" for example:

We say the script has as name "subtitles", so  let's exec it. In soldier's init or some trigger, put this code

Code: [Select]
[] exec "subtitles.sqs"
Now in the script, you must add the following command or code.

Code: [Select]
titletext ["Text number one." , "plain down"]
;Add delay, If you want.
~2
;If you want, add another text
titletext ["Text number two" , "plain down"]


I hope it helps

Title: Re: How to add proper subtitles?
Post by: ahmed117 on 17 Dec 2011, 19:31:44
Yeah it has surely helped me, thanks Aldo15... :clap: The reason I was put these subtitles is that I have created my communication in game in Urdu language (National Language of Pakistan). while speaking of a character, I wanted subtitles translated in English, Now my problem is solved, thankXxX dude.
Title: Re: How to add proper subtitles?
Post by: savedbygrace on 18 Dec 2011, 03:17:08
Check this tutorial (http://www.ofpec.com/tutorials/index.php?action=show&id=14&page=31) out. Step 5 covers your question in detail.