| Can't load script file 
 
				When I try to load my CS I get an error:
 FATAL ERROR: Could not load script file
 'custom_stories/SuperSoldierAdventures/maps/mansion.hps'!
 main (92,26) : ERR : Expected identifier
 
 
 
 I suppose that I wrote something incorrectly in my script but I can't find what.
 
 
 
 
 
 ////////////////////////////
 // Run when the map starts
 void OnStart()
 
 {
 AddUseItemCallback("", "key_1", "mansion_1", "UsedKeyOnDoor", true);
 AddUseItemCallback("", "key_2", "level_door_studies", "UsedKeyOnDoor2", true);
 AddEntityCollideCallback("Player", "ScriptArea_1", "Scare1", true, 1);
 AddEntityCollideCallback("Player", "ScriptArea_2", "Scare2", true, 1);
 SetEntityPlayerInteractCallback("potion_sanity_2", "Scare3", true);
 SetEntityPlayerInteractCallback("note_3", "SetScriptActive", true);
 AddEntityCollideCallback("book_moveable_18", "ScriptArea_3", "UnlockDoor", true, 1);
 SetEntityPlayerInteractCallback("note_4", "TpStatue", true);
 SetEntityPlayerInteractCallback("note_6", "TpStatue2", true);
 SetEntityPlayerInteractCallback("note_7", "Grunt", true);
 }
 
 
 void UsedKeyOnDoor(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("mansion_1", false, true);
 PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, false);
 RemoveItem("key_1");
 }
 
 
 void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
 {
 SetSwingDoorLocked("level_door_studies", false, true);
 PlaySoundAtEntity("", "unlock_door", "level_door_studies", 0.0f, false);
 RemoveItem("key_2");
 }
 
 
 void Scare1(string &in asParent, string &in asChild, int alState)
 {
 SetEntityActive("corpse_male_1", true);
 AddPropForce("corpse_male_1", -10000, 0, 0,"world" );
 PlaySoundAtEntity("", "24_iron_maiden.snt", "corpse_male_1", 0, false);
 }
 
 
 void Scare2(string &in asParent, string &in asChild, int alState)
 {
 SetEntityActive("corpse_male_2", true);
 AddPropForce("corpse_male_2", -10000, 0, 0,"world");
 PlaySoundAtEntity("", "24_iron_maiden.snt", "corpse_male_2", 0, false);
 }
 
 
 void Scare3(string &in item)
 {
 SetEntityActive("corpse_male_3", true);
 PlaySoundAtEntity("", "24_iron_maiden.snt", "corpse_male_3", 0, false);
 }
 
 
 void SetScriptActive(string &in item)
 {
 SetEntityActive("ScriptArea_2", true);
 SetEntityActive("ScriptArea_3", true);
 }
 
 
 void UnlockDoor(string &in asParent, string &in asChild, int alState)
 {
 SetSwingDoorLocked("mansion_4", false, true);
 PlaySoundAtEntity("", "unlock_door", "book_moveable_18", 0, false);
 }
 
 
 void TpStatue(string &in item)
 {
 SetEntityActive("statue_1", true);
 SetEntityActive("statue_2", true);
 SetEntityActive("statue_3", true);
 SetEntityActive("statue_4", true);
 SetEntityActive("block_box_1", true);
 SetEntityActive("servant_grunt_1", true);
 SetEntityActive("note_6", true);
 SetEntityActive("mansion_3", false);
 SetEntityActive("mansion_4", false);
 AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
 AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
 AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
 AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
 }
 
 
 void TpStatue2(string &in item)
 {
 SetEntityActive("note_7".true);
 SetEntityActive("statue_1", false);
 SetEntityActive("statue_2", false);
 SetEntityActive("statue_3", false);
 SetEntityActive("statue_4", false);
 SetEntityActive("block_box_1", false);
 }
 
 
 void Grunt(string &in item)
 {
 SetEntityActive("servant_grunt_1", false);
 }
 
 
 
 
 
 ////////////////////////////
 // Run when entering map
 void OnEnter()
 {
 
 }
 
 ////////////////////////////
 // Run when leaving map
 void OnLeave()
 {
 
 }
 |