Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Messages error
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Messages error

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?
01-01-2015, 04:28 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Messages error

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.

01-01-2015, 07:55 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Messages error

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.

"Veni, vidi, vici."
"I came, I saw, I conquered."
01-02-2015, 05:29 AM
Find
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#4
RE: Messages error

I've must reinstall Amnesia. Now everything is okay.
01-02-2015, 01:46 PM
Find




Users browsing this thread: 1 Guest(s)