FRRRRRRRGH FATAL ERROR
Alright, so I did some searching and got nowhere. I'm making a custom story and I successfully completed stage 1, but on stage 2, I get this error:
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 2):ERR :Expected expression value
ExecuteString(1, 1):ERR :No matching signatures to 'OnLeave()'
main(38, 2:ERR :Unexpected end of file
-
And this is my code:
void OnStart()
{
AddEntityCollideCallback("Player", "StephArea", "StephanoFunc", true, 1);
}
void StephanoFunc(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Stephano", 5, 5, "");
AddTimer("",2.0f,"StephanoAppear");
AddTimer("",2.7f,"Stephanotalk");
Addtimer("",4.0f,"StopLook");
}
void StephanoAppear(string &in asTimer)
{
PlaySoundAtEntity("", "impact_wood_heavy_med.snt", "Stephano", 0, false);
SetEntityActive("Stephano", true);
SetEntityActive("StephLight1", true);
SetEntityActive("StephLight2", true);
}
void Stephanotalk(string &in asTimer)
{
PlaySoundAtEntity("", "iamstephano.snt", "Stephano, 0, false);
}
void StopLook(string &in asTimer)
{
StopPlayerLookAt();
}
void OnEnter()
{
}
void OnLeave()
{
}
-
Any ideas as to what's causing this? (If there's already a thread for this, let me know and i'll take this down)
|