unexpected end of file - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: unexpected end of file (/thread-13757.html) |
unexpected end of file - Fartfox - 03-04-2012 //////////////////////////// // Run first time starting map void OnStart() { AddUseItemCallback("", "the_dick", "evan_ass", "KeyOnDoor", true); AddUseItemCallback("", "the_penis", "evan_dick", "UseKeyOnDoor", true); AddUseItemCallback("", "the_twat", "evan_twat", "UsedKeyOnDoor", true); AddUseItemCallback("", "the_shit", "evan_shit", "UsedKeyOnDoor2", true); AddUseItemCallback("", "the_poop", "evan_poop", "UsedKeyOnDoors", true); AddEntityCollideCallback("Player", "script_area_1", "GetQuest", true, 1); AddEntityCollideCallback("Player", "script_area_2", "FinishQuest", true, 1); } void GetQuest(string & asParent, string &in asChild, int alState) { AddQuest("quest1", "Quest1"); PlaySoundAtEntity("", "ui_add_quest1", "Player", 0.0f, true); } void FinishQuest(string & asParent, string &in asChild, int alState) { CompleteQuest("quest1", "Quest1"); GiveSanityBoost(); PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("evan_ass", false, true); PlaySoundAtEntity("", "unlock_door.snt", "evan_ass", 0.0f, true); RemoveItem("the_dick"); } void UseKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("evan_dick", false, true); PlaySoundAtEntity("", "unlock_door.snt", "evan_dick", 0.0f, true); RemoveItem("the_penis"); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("evan_twat", false, true); PlaySoundAtEntity("", "unlock_door.snt", "evan_twat", 0.0f, true); RemoveItem("the_twat"); } void UsedKeyOnDoors(string &in asItem, string &in asEntity) { SetSwingDoorLocked("evan_poop", false, true); PlaySoundAtEntity("", "unlock_door.snt", "evan_poop", 0.0f, true); RemoveItem("the_poop"); } void UsedKeyOnDoors2(string &in asItem, string &in asEntity) { SetSwingDoorLocked("evan_shit", false, true); PlaySoundAtEntity("", "unlock_door.snt", "evan_shit", 0.0f, true); RemoveItem("the_shit"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } Please Help! Unexpected end of file! ----------------------------------- 83,2 unexpected end of file RE: unexpected end of file - Stepper321 - 03-04-2012 void FinishQuest(string & asParent, string &in asChild, int alState) { CompleteQuest("quest1", "Quest1"); GiveSanityBoost(); PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true); } PlaySoundAtEntity("", "ui_sanity_gain", "Player, 0.0f, true); you forgot the " at "Player" Quote:void FinishQuest(string & asParent, string &in asChild, int alState) |