Aglowglint11
Junior Member
Posts: 31
Threads: 8
Joined: Mar 2014
Reputation:
0
|
Error Unexpected End of File
Hey Guys, I'm getting this error for my first map and can you possibly help me? Thanks. Here is my script. It says this: "FATAL ERROR: Could not load script file 'custom_stories/Into The Depths/maps/01.hps'! Main (41,2): ERR: Unexpected end of file"
=======================================================
Script Under here
=======================================================
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "Sound_1", True, 1);
AddEntityCollideCallback("Player", "fallarea", "fall", True, 1);
AddEntityCollideCallback("Player", "SoundArea_2", "Sound_2", True, 1);
AddEntityCollideCallback("Player", "SoundArea_3", "Sound_3", True, 1);
void fall(string &in asParent, string &in asChild, int alState); {
SetEntityActive("2", True);
SetEntityActive("3", True);
SetEntityActive("4", True);
SetEntityActive("5", True);
SetEntityActive("6", True);
}
void Sound_1(string &in asParent, string &in asChild, int alState) {
PlaySoundAtEntity("", "react_breath1.ogg", "Player", 0, False);
react_breath1.ogg
}
{
AddUseItemCallback("", "Stairs_Key", "Stairs_Downstairs", "UsedKeyonDoor", true);
}
void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Stairs_Downstairs", false, true);
PlaySoundAtEntity("", "unlock_door", "Stairs_Downstairs", 0, false);
RemoveItem("Stairs_Key");
}
void Sound_2(string &in asParent, string &in asChild, int alState) {
PlaySoundAtEntity("", "general_thunder1.ogg", "Player", 0, False);
}
void Sound_3(string &in asParent, string &in asChild, int alState) {
PlaySoundAtEntity("", "amb_idle_whimp01.ogg", "Player", 0, False);
}
======================================================
Script ends here
======================================================
Please, help if you can. Thanks
~Skyrimdude111
N00B
|
|