[SPOILER] How to make the Wind Open's a Door! - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: [SPOILER] How to make the Wind Open's a Door! (/thread-20830.html) |
How to make the Wind Open's a Door! - VeNoMzTeamHysterical - 03-20-2013 Well i made a script i think its pretty nice. When you walk in an Area a door will open and you hear the wind. Then a timer will start and you will react scare and you get sanity damage Here is the Script Spoiler below!
Make sure you named the Area where the functions triggers 'area1' or change it in anything you want but make sure you change it in the script to. Also the door name in this script is Door1 'you can change it in anything you want but also make sure the change it in script and level editor' Also in Level Editor make an script area behind the door named 'AreaOpenEffect' this is where the particle 'effect' is gonna show up! I hope its useful for anyone. RE: How to make the Wind Open's a Door! - PutraenusAlivius - 03-20-2013 Mistake spotted! You wrote onStart();. People copy-pasting this WILL get an error. Change it to void OnStart() EDIT: Those who don't know scripting....follow the basic tut below. It will help you. http://www.frictionalgames.com/forum/thread-8851.html EDIT2: If you want to add force to the door, don't you only need to add force to either the X-Axis or the Z-Axis? (NOTE: the Y-Axis doesn't do anything. It propels the door upwards.) .__. RE: How to make the Wind Open's a Door! - VeNoMzTeamHysterical - 03-20-2013 (03-20-2013, 02:49 PM)JustAnotherPlayer Wrote: Mistake spotted! You wrote onStart();. People copy-pasting this WILL get an error. Change it to void OnStart()Hahaha oke anyway but its working for me So probably for other people to. RE: How to make the Wind Open's a Door! - Hardarm - 03-21-2013 and the "ps_dust_whirl" isn't the right particle to make a door push. That one is "ps_dust_push.ps" or the other types RE: How to make the Wind Open's a Door! - Adrianis - 03-21-2013 And... Quote: {... that really needs a function header, which JustAnotherPlayer pointed out (but you didn't follow ) Quote:void OnStart() RE: How to make the Wind Open's a Door! - VeNoMzTeamHysterical - 04-16-2013 Better now |