Sanshi
Junior Member
Posts: 14
Threads: 5
Joined: May 2012
Reputation:
0
|
It's 2:20 Am, and I am frustrated...
Hello people of the forums, I've been on the Wiki and tried my best in order to make something that sounds super easy, to turn out to be something to struggle 2 hours for... So what I am trying to do, is make a script that when I collide with a script area, a message appears on my screen.
Most of you will go like "That's easy, just do..." And so on. But please let me bring forth my un-holy script, that refuses to work even when I tried to sacrifice a baby to it.
THE ACTUAL SCRIPT!
_____________________________________________________________
void OnStart()
{
AddEntityCollideCallback("Player", "Awakening_1", "Wokeup", true, 1);
FadeOut(0.0f);
FadeIn(10.0f);
}
void Wokeup(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "WokenUp", 5.0f);
}
_____________________________________________________________
And now my English_Lang file... thingy.
_____________________________________________________________
<LANGUAGE>
<CATEGORY Name="Messages">
<Entry Name="WokenUp">Seems like it's a new day. Wonder what'll happen today.</Entry>
</CATEGORY>
</LANGUAGE>
_____________________________________________________________
Anyone see a problem here?
|
|
07-03-2013, 01:21 AM |
|