Frictional Games Forum (read-only)
Slam Door Shut - 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: Slam Door Shut (/thread-6611.html)



Slam Door Shut - TomFX - 02-16-2011

Hello,

Despite the fact that this forum is filled with threads like that... I still can't figure it out. I'm sorry. Big Grin

So the player is walking trough a corridor, when the door, at the very far end, slams shut and also locks itself.

Since I'm a beginner, with a brief experience on scripting, I need detailed information. Big Grin

So how do I make a door shut itself, when a player passes script area AND also making the door get locked (the player will need to open it later).

Thank you.


RE: Slam Door Shut - Vradcly - 02-16-2011

Well what is it you dont understand from everything on this subject that is already out there?, how far have you gotten in the process? Do you get an error or simply nothing happens when you try?
Or do you need help all the way from the beginning? Have you set up a dev environment?

Will be much easier to help you if you clarify from what point you need help...


RE: Slam Door Shut - TomFX - 02-16-2011

Yes, I've set up dev environment, the entities is in place... What confuses me is the very beginning of scripting, sections that start with "void...".

I didn't even try basically, as I said, I don't know where to begin... If you could just link me to the topic, that already exist, that would be the best example, it would be all that I need.


RE: Slam Door Shut - xiphirx - 02-16-2011

If you don't understand the return type (void) you may want to start looking at programming languages, or follow a few tutorials on Angel Script.


RE: Slam Door Shut - Akumasama - 02-16-2011

Ah...

You're new to programming then, I geuss.
You might learn something from the thread I made when I just started scripting.
I'll link it for you.

http://frictionalgames.com/forum/thread-5425.html

Also, if you want to learn anything, post whatever you have and we'll help you expand both your knowledge and script. Smile
If you have nothing as of yet, try starting out with the basic script and TRY to write your own part in there.
You won't learn anything from only reading, is what I'm trying to say Tongue