Frictional Games Forum (read-only)
Coding Questions - 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: Coding Questions (/thread-13911.html)



Coding Questions - rjmcfarland - 03-11-2012

Questions on some coding:


How can I activate an entity so that when someone walks near it, it appears and falls? (the situation is when someone is walking around a corner towards a table a body falls from the ceiling and lands on the table)

PLEASE DO NOT SEND ME A LINK TO THE SCRIPT FUNCTIONS! I am not good with the built in java coding (be that it is java)

AND I want the screen to move inwards slightly and make the low/loud booming noise along with the candle on the table to go out.

Next is I want to connect doors and I have no clue on how.

Thanks Smile


RE: Coding Questions - Your Computer - 03-11-2012

The game doesn't use Java. Java is more complex than what we've been exposed to with HPL2 scripting. If you want to understand how to do what you're requesting, you're going to have to review and study the engine scripts wiki article anyway.

You're going to need: AddEntityCollideCallback, SetEntityActive, FadePlayerFOVMulTo and GiveSanityDamage.

I have no idea what you mean by connecting doors.