PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Beginner asking for some help.
(09-26-2013, 03:32 PM)daortir Wrote: Well I did manage to get my functions called : D !
Now I'm having some more issues (I'm sorry about asking so much help, but scripting kinda looks terribly hard to me xD). Her's the thing : I want my player to enter a script area, which actually is a bed. Then the screen fades to black while a message is displayed on the screen. So far, i made it work easily.
But then, I want to add a timer that calls the Changemap function when it expires.
And I just can't get it to work, I get a fatal error : "No matching signatures".
Here's the code I used :
void LevelFinished(string &in asParent, string &in asChild, int alState)
{
FadeOut(5);
SetMessage("Messages", "sleep", 3);
AddTimer("", 5, LoadNextMap);
}
void LoadNextMap(string &in asName, int alCount)
{
ChangeMap("firstdream", "PlayerStartArea_1", "", "");
}
Thanks again for all your help !
EDIT : renamed topic ^^. Maybe that'll be a little better.
AddTimer("", 5, LoadNextMap);
You forgot to add quotation marks.
The right one:
AddTimer("", 5, "LoadNextMap");
--------------------------------------------------------------------------
void LoadNextMap(string &in asName, int alCount)
You have the wrong callback syntax.
The right one:
void LoadNextMap(string &in asTimer)
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
09-26-2013, 03:39 PM |
|