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.
}