Frictional Games Forum (read-only)
Message Won't appear at all. - 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 Won't appear at all. (/thread-23550.html)



Message Won't appear at all. - Gilligan's Hell - 10-10-2013

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]


RE: Message Won't appear at all. - Apfel - 10-10-2013

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)


RE: Message Won't appear at all. - Gilligan's Hell - 10-10-2013

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


RE: Message Won't appear at all. - blueberry - 10-10-2013

It feels like you are teasing us with screenshots XD


RE: Message Won't appear at all. - Gilligan's Hell - 10-10-2013

(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