![]() |
credits error help me please - 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: credits error help me please (/thread-15341.html) |
credits error help me please - skirnks017 - 05-09-2012 hi forum I need help....please I need insert credits in my custom history but...I am getting an error :/ this is my error : ![]() //////////////////////////// // Run when entering map void OnStart() { AddEntityCollideCallback("Player", "ScriptArea_1", "Susto1", true, 1); // area de susto 1 AddEntityCollideCallback("Player", "ScriptArea_2", "Susto2", true, 1); // area de susto 2 AddEntityCollideCallback("Player", "ScriptArea_3", "Susto3", true, 1); // area de susto 3 AddEntityCollideCallback("Player", "ScriptArea_4", "Susto4", true, 1); // area de susto 4 AddEntityCollideCallback("Player", "ScriptArea_5", "Susto5", true, 1); // area de susto 5 AddEntityCollideCallback("Player", "ScriptArea_6", "Susto6", true, 1); // area de susto 6 // hola men! AddEntityCollideCallback("Player", "ScriptArea_7", "Susto7", true, 1); // area de susto 7 AddEntityCollideCallback("Player", "ScriptArea_8", "Susto8", true, 1); // area de susto 8 AddEntityCollideCallback("Player", "ScriptArea_9", "Susto9", true, 1); // area de susto 9 AddEntityCollideCallback("Player", "ScriptArea_10", "Susto10", true, 1); // area de susto 10 AddEntityCollideCallback("Player", "ScriptArea_11", "Susto11", true, 1); // area de susto 11 AddUseItemCallback("", "llave1", "puerta1", "KeyOnDoor1", true); //Puerta1 AddUseItemCallback("", "llave2", "puerta2", "KeyOnDoor2", true); //Puerta2 AddUseItemCallback("", "llave3", "puerta3", "KeyOnDoor3", true); //Puerta3 AddUseItemCallback("", "llave4", "puerta4", "KeyOnDoor4", true); //Puerta4 AddEntityCollideCallback("Player", "ScriptArea_16", "Susto16", true, 1); // area de susto 16 //Puerta Rota 1 SetEntityPlayerInteractCallback("llave1", "ActivarScript1", true); //activar evento con llave 1 SetEntityPlayerInteractCallback("llave2", "ActivarScript2", true); //activar evento con llave 2 SetEntityPlayerInteractCallback("yesquero1", "ActivarScript3", true); //activar evento con llave 3 } void Susto1(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false); SetEntityActive("cotito1", true); AddPropImpulse("cotito1", 20, 0, 0, "world"); //X,Y,Z } void Susto2(string &in asParent, string &in asChild, int alState) { StartPlayerLookAt("puertarota1", 4.0f, 4.0f, ""); AddEnemyPatrolNode("vagaina1", "PathNodeArea_1", 0, "Idle"); AddEnemyPatrolNode("vagaina1", "PathNodeArea_2", 0, "Idle"); SetEntityActive("vagaina1", true); SetEntityActive("ScriptArea_24", true); SetPropHealth("puertarota1", 25.0f); PlaySoundAtEntity("", "lurker_hit_wood.snt", "puertarota1", 0.0f, false); GiveSanityDamage(5.0f, true); AddTimer("", 1.0f, "StopLookAt_1"); } void StopLookAt_1(string &in asTimer) { StopPlayerLookAt(); } void Susto3(string &in item) { SetEntityActive("ScriptArea_4", true); } void Susto4(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "21_intro_scream.snt", "Player", 0, false); SetEntityActive("cotito2", true); AddPropImpulse("cotito2", 20, 0, 0, "world"); //X,Y,Z } void Susto5(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false); SetEntityActive("cotito3", true); AddPropImpulse("cotito3", 0, 0, 10, "world"); //X,Y,Z } void Susto6(string &in asParent, string &in asChild, int alState) { SetEntityActive("holamen1", true); PlaySoundAtEntity("holamen1", "holamen1.snt", "Player", 0, false); AddTimer("", 0.6, "tiempo1"); } void tiempo1(string &in asTimer) { SetEntityActive("holamen1", false); } void Susto7(string &in asParent, string &in asChild, int alState) { SetEntityActive("puertabloqueada1", true); SetEntityActive("puertabloqueada2", true); SetEntityActive("ScriptArea_8", true); AddTimer("", 0.1, "tiempo2"); } void Susto8(string &in asParent, string &in asChild, int alState) { SetEntityActive("ScriptArea_9", true); SetEntityActive("cofre1", true); SetEntityActive("aceite1", true); SetEntityActive("llave4", true); } void Susto9(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "ctmxoda.snt", "Player", 0, false); SetEntityActive("cotito4", true); AddPropImpulse("cotito4", 0, 0, 10, "world"); //X,Y,Z } void Susto10(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false); SetEntityActive("cotito5", true); AddPropImpulse("cotito5", 20, 0, 0, "world"); //X,Y,Z } void Susto11(string &in asParent, string &in asChild, int alState) { SetEntityActive("puertabloqueada1", true); SetEntityActive("puertabloqueada2", true); SetEntityActive("ScriptArea_8", true); AddTimer("", 5.0, "ending"); } void tiempo2(string &in asTimer) { SetEntityActive("puerta2", false); SetEntityActive("puertarota1", false); } void ActivarScript1(string &in item) { SetEntityActive("ScriptArea_1", true); } void ActivarScript2(string &in item) { SetEntityActive("ScriptArea_2", true); } void ActivarScript3(string &in item) { SetEntityActive("ScriptArea_4", true); } void KeyOnDoor1(string &in asItem, string &in asEntity) { SetSwingDoorLocked("puerta1", false, true); PlaySoundAtEntity("", "unlock_door", "puerta1", 0, false); RemoveItem("llave1"); } void KeyOnDoor2(string &in asItem, string &in asEntity) { SetSwingDoorLocked("puerta2", false, true); PlaySoundAtEntity("", "unlock_door", "puerta2", 0, false); RemoveItem("llave2"); } void KeyOnDoor3(string &in asItem, string &in asEntity) { SetSwingDoorLocked("puerta3", false, true); PlaySoundAtEntity("", "unlock_door", "puerta3", 0, false); RemoveItem("llave3"); } void KeyOnDoor4(string &in asItem, string &in asEntity) { SetSwingDoorLocked("puerta4", false, true); PlaySoundAtEntity("", "unlock_door", "puerta4", 0, false); RemoveItem("llave4"); } void ending(string &in asTimer) { StartCredits("Skirnks_theme.ogg", "false", "Ending", "MainCredits", 9001); } //////////////////////////// // Run when leaving map the last line is a error :/ please help me ..... sorry for my languaje I from chile...... RE: credits error help me please - Statyk - 05-09-2012 Take the quotations off of "false" in the "StartCredits" function. like this: StartCredits("Skirnks_theme.ogg", false, "Ending", "MainCredits", 9001); RE: credits error help me please - skirnks017 - 05-09-2012 but I'm an idiot....!!!!! xD thanks Statyk ![]() as by slowing down? |