Frictional Games Forum (read-only)
Yet another noob to the ranks - 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: Yet another noob to the ranks (/thread-5609.html)

Pages: 1 2


RE: Yet another noob to the ranks - Nitt - 12-03-2010

(12-03-2010, 12:13 PM)Someone else Wrote: It might be that you placed the door inside of the door frame. Thus it is stuck inside it and can't open.
Check the x, y and z position for both the door and the door frame and make sure they are exactly the same.

They were all exactly the same. Except the one that kinda worked, so I fixed that one and now it doesn't work, haha.

EDIT:

Okay, I've found two different ways of fixing this problem. You can tell me if either of them is a bad idea.

1. Change the position of the door along the y-axis - The door seemed to be in the ground a little bit, so I just lifted it up so it fit the frame.

2. Untick the "collides" boxes in the doorframes - I thought this might work too, since it seemed to be a problem of the door being stuck within the frame.

Anyway, I'm assuming 1 will be the better option, if only aesthetically, but feedback would be nice. =]

EDIT 2: Yeah, falling through the map isn't much fun, so I'm going to stick with 1.

EDIT 3: Another question (should I post a new thread for each question? I'm not sure how it works here), is there a way to script the lighting of a torch/candle to cause an event? I'm thinking Zelda terms, where lighting all four torches in a room will open the door, you know?


RE: Yet another noob to the ranks - Som1Lse - 12-03-2010

(12-03-2010, 05:12 PM)Nitt Wrote: should I post a new thread for each question? I'm not sure how it works here
I think it might be best to keep all related questions in one topic.
Also to make one topic with a lot of questions if you've got a lot at the same time.
Otherwise I think making more topics is the best idea.
Anyway I don't think there are any rules about it.

(12-03-2010, 05:12 PM)Nitt Wrote: is there a way to script the lighting of a torch/candle to cause an event? I'm thinking Zelda terms, where lighting all four torches in a room will open the door, you know?
There was a custom story that did that.
I think it is called "Cursed summoning part 1" or something like that.

The functions to use are probably
Code:
/**
* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc
*/
void  SetEntityCallbackFunc(string& asName, string& asCallback);
/**
* A callback called when ever the connection state changes (button being switched on). Syntax: void Func(string &in EntityName, int alState). alState: -1=off, 0=between 1=on
*/
void  SetEntityConnectionStateChangeCallback(string& asName, string& asCallback);

@Devs:
Wouldn't it be good to have a syntax highlighter plugin on the forums.
So you can post highlighted code?


RE: Yet another noob to the ranks - Nitt - 12-04-2010

Sweet, thanks. I'll toy with that.


Another question - How do I place unlit lamps? I selected a file "hanging_lantern_wall_no_light_1" and placed it on the map. I assumed the "no_light" would mean that it would begin unlit, but this wasn't the case. I unchecked the "active" box, which just made it not appear in the test. Not really sure what else to do, but I feel pretty certain I'll facepalm when someone tells me. Tongue


RE: Yet another noob to the ranks - Akumasama - 12-04-2010

You can uncheck "lit" in the properties of the lamp Smile


RE: Yet another noob to the ranks - Nitt - 12-04-2010

Properties? As in entity? I'm not seeing it. :/

EDIT: Nevermind. I found it on another candlestick. It's just not an option on the "hanging_lantern_wall_no_light_1" for some reason.


RE: Yet another noob to the ranks - Som1Lse - 12-04-2010

It's not on the "_no_light" version because it doesn't give light at all.
Thus it would be pointless, as there would be no reason to ignite it.
It is in the "hanging_lantern_wall".


RE: Yet another noob to the ranks - Akumasama - 12-05-2010

He already noticed that, Someone else. Tongue


RE: Yet another noob to the ranks - Som1Lse - 12-05-2010

(12-05-2010, 11:27 AM)Akumasama Wrote: He already noticed that, Someone else. Tongue
Actually I just explained why it wasn't in the "_no_light" version, in which he only wrote "for some reason".
I explained the reason.


RE: Yet another noob to the ranks - Akumasama - 12-05-2010

Ah okay. Smile