This is My third time i've edited my script file and every time i add something an error occurs then i add the script here and someone says there is a bracket or line missing and fixes it so can you help me again?\
void OnStart()
{
AddEntityCollideCallback("Player", "musicareabasement", "MusicPlay", true, 0);
AddEntityCollideCallback("Player", "basementdoorsmash", "func_slam", true, 1);
}
void MusicPlay(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Music_01.ogg" , true , 10 , 2.0f , 0 , true);
}
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("basementdoor", 0.0f);
SetPropHealth("basementcorpse:, 0.0f;
PlaySoundAtEntity("", "scare_human_noises.snt", "Player", 0, false);
}
void StartEffectEmotionFlash("basementdoortext","dooropen","00_laugh.snt")
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}
/////////////////////////////
The Music area and basement door smash worked together but now i added a corpse that dissapears and a scary noise plus a Emotion flash and now it say at the very eng after the /// unexpected end of file i think i did the english.lang right?
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
Your Name is Robert,You are Inside This strange House that you entered after hearing screams from inside. You walked into the basement but a gush of wind slammed the door shut and blew out every light except one you must try and escape!
</Entry>
</CATEGORY>
</LANGUAGE>
<CATEGORY Name="basementdoortext">
<Entry Name ="dooropen">
This Place Is Creepy I Need to get Out! Oh No where did all this water come from?
</Entry>
</CATEGORY>
</LANGUAGE>
Every one who helps here will get thir username in the credits for scripting