Frictional Games Forum (read-only)
Message in the middle of the screen - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Message in the middle of the screen (/thread-8391.html)



Message in the middle of the screen - xtron - 06-01-2011

how to make a message appear in the middle of the screen when you enter the map?


RE: Message in the middle of the screen - Tanshaydar - 06-01-2011

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

Displays a message on the screen.

asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.

For this and more -> http://wiki.frictionalgames.com/hpl2/amnesia/script_functions