05-26-2013, 04:05 PM
05-26-2013, 04:12 PM
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScrAreaLocation", "MsgAppear", true, 1); //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 asParent, string &in asChild, int 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.
}
05-26-2013, 04:44 PM
"ScrAreaLocation" you mean the scripts name?
05-26-2013, 04:49 PM
(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.
05-26-2013, 04:57 PM
Ok,get it. Thanks!