Frictional Games Forum (read-only)

Full Version: Message Won't appear at all.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In a certain map in my mod i have scripted a message pop up to unnerve the player. I Added the script area, added the correct names and etc.

I Load the map and the message wont appear at all

from map script:
void OnStart()
{
AddEntityCollideCallback("Player", "Messagescare1", "Messagescare1", true, 1);
}

void Message1(string &in asEntity, int alState)
{
SetMessage("Messages", "Messagescare1", 4);
}


from extra_english file:
<Entry Name="Messagescare1">I Think... I'm being watched.</Entry>

Script Area: [Image: 0gbz27y.jpg]
Hi,

try to exchange this line:

void Message1(string &in asEntity, int alState)


to this one:

void Messagescare1(string &in asParent, string &in asChild, int alState)
(10-10-2013, 07:16 PM)Apfel Wrote: [ -> ]Hi,

try to exchange this line:

void Message1(string &in asEntity, int alState)


to this one:

void Messagescare1(string &in asParent, string &in asChild, int alState)

Thanks. that fixed the issue.
It feels like you are teasing us with screenshots XD
(10-10-2013, 07:56 PM)Sergeant Crits Wrote: [ -> ]It feels like you are teasing us with screenshots XD

I know... aren't i evil Big Grin