Frictional Games Forum (read-only)
How to make the wind open the 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 Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to make the wind open the door? (/thread-19793.html)



How to make the wind open the door? - andrejapotic98 - 01-03-2013

PLEASE HELP ME!!!!!
I want to make wind open the door like in a very beginning of the main story of Amnesia.
Does anyone know how to do that i would realy love to make a good map and i need this for it.Thanks.


RE: How to make the wind open the door? - NaxEla - 01-04-2013

This script will make the wind blow the door open when the player walks into an area.
For my example, the door will be called "door1" and the script area will be called "area1":

PHP Code:
void OnStart()
{
    
AddEntityCollideCallback("Player""area1""OpenDoorByWind"true1);
}
void OpenDoorByWind(string &in asParentstring &in asChildint alState)
{
    
PlaySoundAtEntity("""general_wind_whirl.snt""door1"0false);
    
AddPropForce("door1"001000"local");


The value for the force will probably need to be adjusted.


RE: How to make the wind open the door? - The chaser - 01-04-2013

(01-04-2013, 05:48 AM)NaxEla Wrote: This script will make the wind blow the door open when the player walks into an area.
For my example, the door will be called "door1" and the script area will be called "area1":

PHP Code:
void OnStart()
{
    
AddEntityCollideCallback("Player""area1""OpenDoorByWind"true1);
}
void OpenDoorByWind(string &in asParentstring &in asChildint alState)
{
    
PlaySoundAtEntity("""general_wind_whirl.snt""door1"0false);
    
AddPropForce("door1"001000"local");


The value for the force will probably need to be adjusted.

It would be good that you made a particle system in the door.


RE: How to make the wind open the door? - NaxEla - 01-04-2013

(01-04-2013, 12:07 PM)The chaser Wrote:
(01-04-2013, 05:48 AM)NaxEla Wrote: This script will make the wind blow the door open when the player walks into an area.
For my example, the door will be called "door1" and the script area will be called "area1":

PHP Code:
void OnStart()
{
    
AddEntityCollideCallback("Player""area1""OpenDoorByWind"true1);
}
void OpenDoorByWind(string &in asParentstring &in asChildint alState)
{
    
PlaySoundAtEntity("""general_wind_whirl.snt""door1"0false);
    
AddPropForce("door1"001000"local");


The value for the force will probably need to be adjusted.

It would be good that you made a particle system in the door.

You're right, it would be good... but I'm feeling lazy :p


RE: How to make the wind open the door? - The chaser - 01-04-2013

NaxEla pls


RE: How to make the wind open the door? - taylor23 - 01-23-2013

NaxEla gives the great ideas for wind open the door.
I was looking for the wind open door from many days.
These are very successful when I apply it works.


Shop Shutter