Frictional Games Forum (read-only)
How to show text when looking at sign? - 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)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to show text when looking at sign? (/thread-20527.html)



How to show text when looking at sign? - jiersk - 02-27-2013

Hello there,
Can someone please tell me how I can subtitles to show up when the player looks at a certain sign?
For example: The player looks at a sign in the prison and the text " Prison section B" shows up as subtitles.
Thanks in advance.


RE: How to show text when looking at sign? - NaxEla - 02-27-2013

Using the level editor, put a Sign Area around the sign. Select the sign area, and on the right hand side, click the "Area" properties tab. Specify a text category and text entry (these will be the category and entry that you write in your .lang file). Add the category and entry into your .lang, then your done! I'd suggest making the category called "Signs", then use different entries for each sign.

Example: Category is called "Signs", and Entry is called "PrisonB"
Code:
<LANGUAGE>
    <CATEGORY Name="Signs">
        <Entry Name="PrisonB">Prison section B</Entry>
    </CATEGORY>
</LANGUAGE>



RE: How to show text when looking at sign? - jiersk - 02-27-2013

(02-27-2013, 02:23 AM)NaxEla Wrote: Using the level editor, put a Sign Area around the sign. Select the sign area, and on the right hand side, click the "Area" properties tab. Specify a text category and text entry (these will be the category and entry that you write in your .lang file). Add the category and entry into your .lang, then your done! I'd suggest making the category called "Signs", then use different entries for each sign.

Example: Category is called "Signs", and Entry is called "PrisonB"
Code:
<LANGUAGE>
    <CATEGORY Name="Signs">
        <Entry Name="PrisonB">Prison section B</Entry>
    </CATEGORY>
</LANGUAGE>

Thank you so much!