[Tutorial] Use crowbar to open a door - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: [Tutorial] Use crowbar to open a door (/thread-13018.html) |
[Tutorial] Use crowbar to open a door - SilentStriker - 02-01-2012 Hello everyone! Because alot of people has been asking how to open a door with a crowbar and get all the flashy effects of pulling and particles etc, here is a tutorial on how to do it! Important thing: All the items and things name can be changed they don't need to be named the same as I have in this tutorial but if you change the name remember to change inside the script! Step 1: Choose the door of your liking on which you will use the crowbar, Then create the following so it looks like this: The AreaUseCrowbar is the tall script area, and should be placed in the aligned with the doors side. The AreaBreakEffect is the little box placed near the handle of the door, you can place it a bit to the left of the handle and it should look good It is used to make a dust effect when the door is unlocked The BreakDoor script area is the big square on the right, It is there because when the crowbar hits the area it calls the function which opens the door. The Crowbar_joint should be placed where the area is on the AreaUseCrowbar and should be sized up to 1.2, 1.2, 1.2. You can test how far in you want to crowbar to be The crowbar_dyn should be placed a bit to the right of the crowbar_joint and should be placed so the head of the crowbar is a little bit inside the BreakDoor area. And it should also be sized to 1.2, 1.2, 1.2 And is activated when the crowbar_joint hits the BreakDoor area and if you want the crowbar to break change the Entity file of the crowbar_dyn to Crowbar_broken Remember: Make the crowbars inactive in the level editor Step 2: And when all that is done it is time for the script. This is almost the same script (I removed some unecessary stuff) that Frictional games uses in Amnesia: TDD PHP Code: //////////////////////////// If I missed something please let me know and I fix it ^^ I will maybe do a video tutorial on this if you guys want Almost forgot! Here's a map + code for download, so you can look and see how it works yourself http://www.mediafire.com/?a38095gcamuhat9 RE: [Tutorial] Use crowbar to open a door - UnseenLegend ( NL ) - 02-01-2012 From who you getting it from xD... You guess it. RE: [Tutorial] Use crowbar to open a door - SilentStriker - 02-01-2012 (02-01-2012, 07:46 PM)UnseenLegend ( NL ) Wrote: From who you getting it from xD... You guess it.what? xD RE: [Tutorial] Use crowbar to open a door - trollox - 02-01-2012 +1 for epic tortorial i actually needed this for my next map thanks a lot dude! RE: [Tutorial] Use crowbar to open a door - SilentStriker - 02-01-2012 (02-01-2012, 08:08 PM)trollox Wrote: +1 for epic tortorial i actually needed this for my next map thanks a lot dude!No problem dude I know alot of people have asked on how to make this work RE: [Tutorial] Use crowbar to open a door - Elven - 02-02-2012 I hate that is is always like that: door > crowbar chest > crowbar glass bottle > crowbar my epic por ... nvm RE: [Tutorial] Use crowbar to open a door - SilentStriker - 02-02-2012 (02-02-2012, 04:20 PM)Elven Wrote: I hate that is is always like that:Yea I know.. but I rather use the crowbar like this then like a key RE: [Tutorial] Use crowbar to open a door - Juby - 02-05-2012 (02-02-2012, 07:57 PM)SilentStriker Wrote:(02-02-2012, 04:20 PM)Elven Wrote: I hate that is is always like that:Yea I know.. but I rather use the crowbar like this then like a key It still makes no sense to me why the crowbar breaks after use, it is a perfectly good crowbar you could use for... say golfing, beating up monsters, cheating the vending machines, hitting bananas, and etc... RE: [Tutorial] Use crowbar to open a door - SilentStriker - 02-05-2012 (02-05-2012, 05:03 AM)Juby Wrote:haha yea that's true but it's easy to not make the crowbar break(02-02-2012, 07:57 PM)SilentStriker Wrote:(02-02-2012, 04:20 PM)Elven Wrote: I hate that is is always like that:Yea I know.. but I rather use the crowbar like this then like a key RE: [Tutorial] Use crowbar to open a door - RenanFOX2 - 04-18-2012 This Tutorial is not working. It says "Unexpected end of file" on the end of your sprict. Please can you tell how to call your script? |