Frictional Games Forum (read-only)
[SCRIPT] Crowbar unlocks a closet, doesen't work. - 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: [SCRIPT] Crowbar unlocks a closet, doesen't work. (/thread-16267.html)

Pages: 1 2


RE: Crowbar unlocks a closet, doesen't work. - Adny - 06-18-2012

Okay. I made a map consisting of 1 cabinet (cabinet_nice.ent) named "cabinet" and locked it.
I placed one crowbar on the ground (crowbar.ent) named "CrowbarForCabinet".

With the revised version of the script, I tested it and it works perfectly as intended. This leads me to believe there is something wrong with the parts you chose in the level editor. Make 100% sure all names are correct. Also, there are 4 types of crowbars in the editor, make sure you are using the proper one (crowbar.ent). (NOT broken, dyn or joint).

Also, if you're having any additional errors, please post them. If it does not work, please describe to me in vivid detail exactly what you're doing in game.


RE: Crowbar unlocks a closet, doesen't work. - MaZiCUT - 06-18-2012

(06-18-2012, 12:14 PM)andyrockin123 Wrote: Okay. I made a map consisting of 1 cabinet (cabinet_nice.ent) named "cabinet" and locked it.
I placed one crowbar on the ground (crowbar.ent) named "CrowbarForCabinet".

With the revised version of the script, I tested it and it works perfectly as intended. This leads me to believe there is something wrong with the parts you chose in the level editor. Make 100% sure all names are correct. Also, there are 4 types of crowbars in the editor, make sure you are using the proper one (crowbar.ent). (NOT broken, dyn or joint).

Also, if you're having any additional errors, please post them. If it does not work, please describe to me in vivid detail exactly what you're doing in game.
ok thank you, i'm going to go over the parts ingame carefully.

(06-18-2012, 12:14 PM)andyrockin123 Wrote: Okay. I made a map consisting of 1 cabinet (cabinet_nice.ent) named "cabinet" and locked it.
I placed one crowbar on the ground (crowbar.ent) named "CrowbarForCabinet".

With the revised version of the script, I tested it and it works perfectly as intended. This leads me to believe there is something wrong with the parts you chose in the level editor. Make 100% sure all names are correct. Also, there are 4 types of crowbars in the editor, make sure you are using the proper one (crowbar.ent). (NOT broken, dyn or joint).

Also, if you're having any additional errors, please post them. If it does not work, please describe to me in vivid detail exactly what you're doing in game.
dammit it doesen't work, all the parts are right i've doubblechecked everything, the scripts and all but i have one possible thing.




Could this be for the popup message or the memento you get when you touch the closet and you get a memento to open it, and could it be the popup message?
I'm sending you the whole script in PM.

fuck this shit (temporarly) i'm going to sleep over with my friend for 2 days to atleast have some goddemn fun Big Grin


RE: Crowbar unlocks a closet, doesen't work. - SilentStriker - 06-18-2012

Have you taken a look at my Crowbar tutorial? (It's for a door but it's almost the same thing)

http://www.frictionalgames.com/forum/thread-13018-post-137897.html#pid137897