Script Help Please 
			 
			
				Please help I cannot find what is wrong with my script here- 
 
 void OnStart () 
{ 
AddUseItemCallback("", "LibraryKey", "mansion_2", "KeyOnDoor", true); 
AddEntityCollideCallback("Player", "StartPoint_Quest", "GetStartPoint", true, 1); 
AddEntityCollideCallback("Player", "StartPoint_Quest", "FinishStartPoint", true, 1); 
AddEntityCollideCallback("Player", "AreaDoorSlam", "func_slam", true, 1); 
} 
 
void func_slam(string &in asParent, string &in asChild, int alState) 
} 
 
void KeyOnDoor(string &in asItem, string &in asEntity)  
{ 
SetSwingDoorLocked("DoorSlam", false, true); 
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);  
PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false); 
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false); 
PlaySoundAtEntity("", "unlock_door", "mansion_2", 1, false); 
RemoveItem("LibraryKey"); 
GiveSanityDamage(5.0f, true); 
GiveSanityBoostSmall(); 
} 
 
void GetStartPoint(string &in asParent, string &in asChild, int alState)  
{ 
AddQuest("investigate","Investigate"); 
PlayGuiSound("react_breath_slow", 0.5f); 
} 
 
void FinishStartPoint(string &in asParent, string &in asChild, int alState) 
{ 
CompleteQuest("investigate","Investigate"); 
GiveSanityBoostSmall();  
} 
			 
			
			
			
		 |