It just doesn't work! <-[SOLVED] 1 more thing...[SOLVED]
I'm at the edge of my nerve system now because I am JUST ABOUT to finish my custom story and I have 4 script areas left.
3 of them is to display a message (to close the plot, of course) and the last 1 is the credits area.
I have set them up and everything is correct
(otherwise the game would display errors and the map wont open entirely) and etc.
Soooo what's the problem?
They. Simply. Refuse. To work.
Here's the HPS (its not a complete hps, of course. just the 4 areas):
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "TruthOne", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "TruthTwo", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_3", "TruthThree", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "credits", true, 1);
}
void TruthOne(string &in asEntity, int alState)
{
SetMessage("Truth", "One", 0);
SetPlayerRunSpeedMul(0.1);
StopSound("01_amb_darkness.ogg", 3);
}
void TruthTwo(string &in asEntity, int alState)
{
SetMessage("Truth", "Two", 0);
PlayMusic("01_paper_self.ogg", true, 1.0, 0, 0, false);
}
void TruthThree(string &in asEntity, int alState)
{
SetMessage("Truth", "Three", 0);
}
void credits(string &in asEntity, int alState)
{
FadeOut(0.1);
StartCredits("ending.ogg", true, "Ending", "MainCredits", 0);
}
Any ideas on why aren't they working?
PS: the 'ending.ogg' is in my CustomStoryName>music file. I guess it will work?
Thanks in advance :]
(This post was last modified: 02-11-2012, 08:03 PM by Zjurc.)
|