Text on 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Text on screen? (/thread-23993.html) |
Text on screen? - goodcap - 11-30-2013 Hey guys, I played some custom stories where if you entered a certain area a message pops up in the middle of the screen. How do I do this? RE: Text on screen? - WALP - 11-30-2013 From wiki: 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. RE: Text on screen? - goodcap - 11-30-2013 (11-30-2013, 07:52 PM)The Mug Wrote: From wiki: Thanks, but how do Imake it appear in certain areas only? RE: Text on screen? - Slanderous - 11-30-2013 void OnStart() { AddEntityCollideCallback("Player", "YourAreaName", "func", true, 1); } void func(string &in asChild, string &in asParent, int alState) { SetMessage("Messages", "name of the message in extra_english", 7); } RE: Text on screen? - WALP - 11-30-2013 http://wiki.frictionalgames.com/hpl2/amnesia/script_functions just in case you need it RE: Text on screen? - ingedoom - 12-01-2013 goodcap, no offence, you have already asked this in your other thread and it is some basic stuff which you should be able to figure out using the guides, reference and codes examples from custom stories, so try and figure things out yourself before you come asking. This will make you a lot better and independant coder, but if you don't wish that, i could be your mentor and answer some questions for you. |