Frictional Games Forum (read-only)
Message 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: Message on screen? (/thread-21631.html)



Message on screen? - amnesiaplayer321 - 05-26-2013

Can anyone show tutorial to a message shows on screen in a specific location?


RE: Message on screen? - PutraenusAlivius - 05-26-2013

PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""ScrAreaLocation""MsgAppear"true1); //ScrAreaLocation is the location where the message will appear. Change true to false if you want the message to appear over and over again.
}

void MsgAppear(string &in asParentstring &in asChildint alState)
{
SetMessage("MessageCategory""MessageEntry"0);
//MessageCategory is the category of the message.
//MessageEntry is the entry of the message in the category specified earlier.
//0 is the amount of time you want the message to appear. 0 means that it will calculate how many strings and calculate the time.




RE: Message on screen? - amnesiaplayer321 - 05-26-2013

"ScrAreaLocation" you mean the scripts name?


RE: Message on screen? - ClayPigeon - 05-26-2013

(05-26-2013, 04:44 PM)amnesiaplayer321 Wrote: "ScrAreaLocation" you mean the scripts name?

I believe he means the scriptarea you'll need to collide with in order to trigger the message.


RE: Message on screen? - amnesiaplayer321 - 05-26-2013

Ok,get it. Thanks!