![]() |
Fatal Error Amnesia The Dark Descent - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Fatal Error Amnesia The Dark Descent (/thread-23174.html) |
Fatal Error Amnesia The Dark Descent - TheNextLevelz - 09-15-2013 void OnStart() { AddUseItemCallBack("", "Crowbar", "Door", "UseCrowBarOnDoor", true); AddEntityCollideCallback("Joint", "AreaBreak", "BreakDoor", true, 1); } void UseCrowBarOnDoor(string &in asItem, string &in asEntity) { RemoveItem(asItem); PlaySoundAtEntity("", "player_crouch.snt", "Player", 0.05, false); AddTimer(asEntity, 0.2, "TimerPlaceCrowbar"); } void TimerPlaceCrowbar(string &in asTimer) { SetEntityActive("Joint", true); PlaySoundAtEntity("", "puzzle_place_jar.snt", asTimer, 0, false); } void BreakDoor(string &in asParent, string &in asChild, int alState) { SetEntityActive("Joint", false); SetEntityActive("Broken", true); SetSwingDoorLocked("Door", false, false); SetSwingDoorClosed("Door", false, false); SetSwingDoorDisableAutoClose("Door", true); AddPropImpulse("Door", 0, 0, 3, "world"); CreateParticleSystemAtEntity("", "ps_hit_wood.ps", "AreaEffect", false); PlaySoundAtEntity("", "break_wood_metal", "AreaEffect", 0, false); GiveSanityBoostSmall(); PlayMusic("10_puzzle01.ogg", false, 0.7, 0.1, 10, false); AddTimer("", 0.1, "TimerPushDoor"); } voidTimerPushDoor(string &in asTimer { AddPropImpulse("Door", -4, 2, 1, "world"); AddTimer("", 1.1, "TimerDoorCanClose"); Can someone tell me what's wrong I get this error: Expected Identifier Thanks help, Patrick RE: Fatal Error Amnesia The Dark Descent - albertoilmodder - 09-15-2013 I found a mistake but I do not know if it's the only one you did not put quotation marks (excuse my english, I'm Italian) on RemoveItem (asItem). The script would be right RemoveItem ("asItem"); RE: Fatal Error Amnesia The Dark Descent - TheNextLevelz - 09-15-2013 (09-15-2013, 11:08 AM)albertoilmodder Wrote: I found a mistake but I do not know if it's the only one you did not put quotation marks (excuse my english, I'm Italian) on RemoveItem (asItem). The script would be right RemoveItem ("asItem"); thanks! it worked!! many thanks! |