Frictional Games Forum (read-only)

Full Version: Coding Questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.