Hi all,
I think this thing has finally beaten me. I'm at a loss for solutions. My script:
Quote: // Run first time starting map
void OnStart()
{
PreloadSound("male_terrified_5.snt");
SetEntityPlayerInteractCallback("scaryhall", "HallScare", true);
}
void HallScare(string &in asEntity)
{
StartScreenShake("0.3f, "5.5f", "1.0f", "1.0f");
PlaySoundAtEntity("", "male_terrified_5.snt", "ScaryHall", 0.0f, false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100.0f);
}
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Throws me an unexpected EOF error at the last line (29,2 - which I'm confused at because there's only one character). I've taken out functions and added them in in an attempt to figure out where the issue was, but it keeps saying the same thing.
Any ideas?
P.S. On a somewhat related note, is a screen shake sufficient enough to make a dynamic painting fall off a wall? Or is that a separate piece of code?