The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It's 2:20 Am, and I am frustrated...
Sanshi Offline
Junior Member

Posts: 14
Threads: 5
Joined: May 2012
Reputation: 0
#1
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
Find


Messages In This Thread
It's 2:20 Am, and I am frustrated... - by Sanshi - 07-03-2013, 01:21 AM



Users browsing this thread: 1 Guest(s)