Frictional Games Forum (read-only)
[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)

Pages: 1 2 3


RE: [Tutorial] Use crowbar to open a door - SilentStriker - 04-20-2012

(04-18-2012, 04:29 PM)RenanFOX2 Wrote: 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?
Have you downloaded the map linked in the original post? If you look around there you should find how I called the script Smile


Ok now it's fixed Smile



RE: [Tutorial] Use crowbar to open a door - Dutton - 04-20-2012

A video tutorial would be great Smile!


RE: [Tutorial] Use crowbar to open a door - SilentStriker - 04-20-2012

(04-20-2012, 06:16 PM)Dutton Wrote: A video tutorial would be great Smile!
Yes I'm actually thinking about making some video tutorials on different stuff Smile



RE: [Tutorial] Use crowbar to open a door - Cocomunches - 05-11-2012

Can someone help me out? Everything is working fine, but when I use the crowbar and push it, sound plays, crowbar breaks, all is well....

But the door is still there. Tongue

Anyone help?


RE: [Tutorial] Use crowbar to open a door - SilentStriker - 05-11-2012

Well my script only unlocks the door and not destroy it Smile then instead of using SetSwingDoorLocked use SetPropHealth, the door destroys at 0 health Smile


RE: [Tutorial] Use crowbar to open a door - Cranky Old Man - 05-12-2012

(05-11-2012, 09:55 PM)Cocomunches Wrote: Can someone help me out? Everything is working fine, but when I use the crowbar and push it, sound plays, crowbar breaks, all is well....

But the door is still there. Tongue

Anyone help?
It's because your door isn't named "mansion_1".

SilentStriker, while isolating the code that you found in "10_daniels_room.hps" is helpful, understanding the code would improve this tutorial, because it would give you an understanding of things like
- how to help people that are having problems with the code.
- that the entity named "crowbar_dyn_1" is actually a "crowbar_broken", and not a "crowbar_dyn".
- that the code is playing a sound at "asTimer", which (while it works for this particular code) is just bizarre.
It's not hard to copy and paste code. I expect more from a tutorial.


RE: [Tutorial] Use crowbar to open a door - SilentStriker - 05-12-2012

Yes you're absolutely right Cranky! When I made this I just wanted to release a understandable tutorial but yes I needs some improvements Smile

(05-12-2012, 01:34 AM)Cranky Old Man Wrote:
(05-11-2012, 09:55 PM)Cocomunches Wrote: Can someone help me out? Everything is working fine, but when I use the crowbar and push it, sound plays, crowbar breaks, all is well....

But the door is still there. Tongue

Anyone help?
It's because your door isn't named "mansion_1".

SilentStriker, while isolating the code that you found in "10_daniels_room.hps" is helpful, understanding the code would improve this tutorial, because it would give you an understanding of things like
- how to help people that are having problems with the code.
- that the entity named "crowbar_dyn_1" is actually a "crowbar_broken", and not a "crowbar_dyn".
- that the code is playing a sound at "asTimer", which (while it works for this particular code) is just bizarre.
It's not hard to copy and paste code. I expect more from a tutorial.
I hope it's bit better now Smile If not tell me what I should change Smile


RE: [Tutorial] Use crowbar to open a door - pontusry - 05-14-2012

You should probably mention that this:

AddPropImpulse("NAMEOFYOURDOOR", -1, 2, -4, "world");


Should be this:

AddPropImpulse("NAMEOFYOURDOOR", afX, afY, afZ, "world");


afX: Direction along the X-axis
afY: Direction along the Y-axis
afZ: Direction along the Z-axis

Since it's true on "world", then it won't be correct for everybody if they use the same amounts.


RE: [Tutorial] Use crowbar to open a door - Cranky Old Man - 05-14-2012

(05-12-2012, 12:07 PM)SilentStriker Wrote: I hope it's bit better now Smile If not tell me what I should change Smile
Changing all the names to be more generic, is only taking care of the easy part.
The next general step in what you could change, is for you to understand the code itself, because what kind of bugs me, is that you don't show any understanding of what you teach. You have extracted some code from the FG code, and that's great, but there are many ways in which this code can be made more comprehensible.

It doesn't bother me that much. I saw this topic before and I just shrugged at it without commenting on it, so I don't mind if you don't understand it.


RE: [Tutorial] Use crowbar to open a door - SilentStriker - 05-15-2012

Either I'm just a bit slow today or I don't really understand what you meen (my nativ language is swedish)

I know what everything in the code does but I guess I'm not showing it properly?