Frictional Games Forum (read-only)
[SCRIPT] Newbie problems that are driving me crazy! - 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] Newbie problems that are driving me crazy! (/thread-18427.html)

Pages: 1 2


RE: Newbie problems that are driving me crazy! - Vic7im - 09-22-2012

Thank you for the replies, I've managed to fix it using an area callback though Tongue


RE: Newbie problems that are driving me crazy! - Robby - 09-22-2012

(09-22-2012, 11:55 AM)Vic7im Wrote: Thank you for the replies, I've managed to fix it using an area callback though Tongue
Well, at least it works now.


RE: Newbie problems that are driving me crazy! - Vic7im - 09-22-2012

(09-22-2012, 11:58 AM)Nemet Robert Wrote:
(09-22-2012, 11:55 AM)Vic7im Wrote: Thank you for the replies, I've managed to fix it using an area callback though Tongue
Well, at least it works now.
I've found the error re-checking scripts and the .lang file. Now it works like a charm =)


There's my story: http://www.frictionalgames.com/forum/thread-18457.html


RE: Newbie problems that are driving me crazy! - Vic7im - 09-23-2012

More than a help with scripts, I'd like to know the exact value of Impulse given on a door to make it completely, but gently, open (as if it was opened by a player). Best thing I've come up with is
~ 20 but sometimes it simply bangs the door open. Thoughts?


RE: Newbie problems that are driving me crazy! - Vic7im - 09-27-2012

Brutally Necroposting since creating a new thread is considered as spam.

I have some problems regarding activation/deactivation of props.

I have three crates, static-physics enabled. The player looks at them but can't interact wtih them. After a certain condition those crates are replaced with interactive ones.

since it's a bigger script ill just paste the relevant part
Spoiler below!


SetPropActiveAndFade("VanishBox1", false, 0);
SetPropActiveAndFade("VanishBox2", false, 0);
SetPropActiveAndFade("VanishBox3", false, 0);


Idk if I should remove the static physics flag, Ill try as soon as I get home. Thanks in advance for any helpful replies =)


RE: Newbie problems that are driving me crazy! - FlawlessHappiness - 09-27-2012

Ï would just use SetEntityActive("VanishBox1", true);


RE: Newbie problems that are driving me crazy! - Vic7im - 09-27-2012

(09-27-2012, 05:14 PM)beecake Wrote: Ï would just use SetEntityActive("VanishBox1", true);

Nvm,fixed it. Static entities can't disappear, interactive ones with a static flag can. Puzzling, but in the end it worked. Thanks for the reply anyway =)