I REALLY NEED HELP!!! - 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: I REALLY NEED HELP!!! (/thread-6183.html) |
I REALLY NEED HELP!!! - JarrodTheBobo - 01-12-2011 HEllo im new to scripting and all that jazz, and i cant find anything to help me with this. I have a default script for a story im making and i want to add a command to make a key open a door. i found a goood one but i dont know where to put it! do i put it in the default script file? and if i do where! i tried putting it in the default script file and it didnt do anything! none of the tutorials are helping! they dont tell you where to put stuff! im so fusterated! RE: I REALLY NEED HELP!!! - Tottel - 01-12-2011 Hmm, Déjà-vue. I suggest you start by (slowly) reading this: http://wiki.frictionalgames.com/hpl2/tutorials/script/disable_gravity_tutorial RE: I REALLY NEED HELP!!! - JarrodTheBobo - 01-13-2011 (01-12-2011, 09:23 PM)Tottel Wrote: Hmm, Déjà-vue. didnt help me...at all. and now i have another problem! when i go to play my custom map, when i go in i cant turn, it has a bunch of writing about fps, materials, and other junk and the walls have white lines like framework on them. i also cant press f1 to bring up the debug menu....what did i do wrong? can someone please help me? RE: I REALLY NEED HELP!!! - Tottel - 01-13-2011 I had the exact same thing (which no one else seems to have). Load your custom map, press escape and change profile. Now return to game and press f1. RE: I REALLY NEED HELP!!! - JarrodTheBobo - 01-13-2011 (01-13-2011, 02:20 AM)Tottel Wrote: I had the exact same thing (which no one else seems to have). Load your custom map, press escape and change profile. Now return to game and press f1. worked XD thanks i love you.! NOW I HAVE A NEW PROBLEM!!! Im trying to get a door to open with a key, but i wont...here is my script //////////////////////////// // Run first time starting map void OnStart() { AddUseItemCallback("", "key_1", "door_1" "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("door_1", false, true); PlaySoundAtEntity("", "unlock_door", "door_1", 0.0f, false); RemoveItem("key_1"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } do i need to do something to the door in the map editor? i only have it set as locked and havnt played with the other stuff.... btw my door in games is named door_1 and the key is key_1 can someone please help me? im going to kill someone! bump guys i really need help!!! RE: I REALLY NEED HELP!!! - Frontcannon - 01-13-2011 Add this to UsedKeyOnDoor: Code: AddDebugMessage("function is called", false); Then activate 'Show debug messages' in the debug menu. Does it show when you use the key on the door? |