Frictional Games Forum (read-only)
[SCRIPT] Messages error - 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: [SCRIPT] Messages error (/thread-28854.html)



Messages error - MaksoPL - 01-01-2015

Hi. I've got a problem with area messages. I'm walk in to the script area, and message don't create on the screen.
My .hps file
void OnStart()
{
AddEntityCollideCallback("Player", "message1", "Message1", true, 1);
}

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "wiatr1", 10);
}

My .lang file (part with the message)
<CATEGORY Name="Messages">
<Entry Name="wiatr1">Wiatr bardzo glosno wieje.</Entry>
</CATEGORY>

What I've must done?


RE: Messages error - Mudbill - 01-01-2015

Can you confirm that the collision actually happens? For example if the area is 0 is one axis, it never happens because it's too small.


RE: Messages error - PutraenusAlivius - 01-02-2015

Like what Mudbill said, did you collide with the script area in question? It's probably too small or something.
However, it could instead be your lang file that has the problem. Copy-paste the contents of the lang too into here.


RE: Messages error - MaksoPL - 01-02-2015

I've must reinstall Amnesia. Now everything is okay.