Frictional Games Forum (read-only)

Full Version: Message on screen?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone show tutorial to a message shows on screen in a specific location?
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.

"ScrAreaLocation" you mean the scripts name?
(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.
Ok,get it. Thanks!