04-06-2013, 04:47 AM
Everything else has been working fine until I added this for my chemistry puzzle:
The crash window says "Unexpected end of file" and tells me its on my last line. So I remove the "void StopCureLook" temporarily to see if it fixes the problem, and the same thing happens saying it's on my last line again.
Code:
void PlaceJar2(string &in asParent, string &in asChild)
{
StartPlayerLookAt("unfinished_cure_2", 1.0, 1.0, "");
RemoveItem("heated_jar");
AddTimer("looking", 2.0, "LookJar");
}
void LookJar(string &in asTimer)
{
SetEntityActive("unfinished_cure_2", true);
StopPlayerLookAt();
PlaySoundAtEntity("", "impact_glass_med.snt", "unfinished_cure_2", 0, false);
AddUseItemCallback("", "sodamide", "funnel", "AddSodamide", true);
}
void AddSodamide(string &in asParent, string &in asChild)
{
StartPlayerLookAt("unfinished_cure_2", 1.0, 1.0, "");
RemoveItem("sodamide");
AddTimer("looking2", 2.0, "LookJar2");
}
void LookJar2(string &in asTimer)
{
SetEntityActive("unfinished_cure_2", false);
StopPlayerLookAt();
PlaySoundAtEntity("", "puzzle_add_chemical.snt", "cure", 0, false);
AddTimer("pickitup", 2.0, "PickUpCure");
}
void PickUpCure(string &in asTimer)
{
SetEntityActive("cure", true);
StartPlayerLookAt("cure", 1.0, 1.0, "");
AddTimer("stoplooking", 1.0, "StopCureLook");
CompleteQuest("curequest", "CureQuest");
}
void StopCureLook(string &in asTimer)
{
StopPlayerLookAt();
}