andrejapotic98
Junior Member
Posts: 4
Threads: 2
Joined: Aug 2012
Reputation:
0
|
How to make the wind open the door?
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.
(This post was last modified: 01-03-2013, 10:50 PM by andrejapotic98.)
|
|
01-03-2013, 10:49 PM |
|
NaxEla
Senior Member
Posts: 415
Threads: 5
Joined: Dec 2012
Reputation:
28
|
RE: How to make the wind open the door?
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":
void OnStart() { AddEntityCollideCallback("Player", "area1", "OpenDoorByWind", true, 1); } void OpenDoorByWind(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "general_wind_whirl.snt", "door1", 0, false); AddPropForce("door1", 0, 0, 1000, "local"); }
The value for the force will probably need to be adjusted.
(This post was last modified: 01-04-2013, 05:49 AM by NaxEla.)
|
|
01-04-2013, 05:48 AM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: How to make the wind open the door?
(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":
void OnStart() { AddEntityCollideCallback("Player", "area1", "OpenDoorByWind", true, 1); } void OpenDoorByWind(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "general_wind_whirl.snt", "door1", 0, false); AddPropForce("door1", 0, 0, 1000, "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.
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
01-04-2013, 12:07 PM |
|
NaxEla
Senior Member
Posts: 415
Threads: 5
Joined: Dec 2012
Reputation:
28
|
RE: How to make the wind open the door?
(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":
void OnStart() { AddEntityCollideCallback("Player", "area1", "OpenDoorByWind", true, 1); } void OpenDoorByWind(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "general_wind_whirl.snt", "door1", 0, false); AddPropForce("door1", 0, 0, 1000, "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
|
|
01-04-2013, 05:49 PM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: How to make the wind open the door?
NaxEla pls
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
01-04-2013, 07:28 PM |
|
taylor23
Junior Member
Posts: 3
Threads: 0
Joined: Jan 2013
Reputation:
0
|
RE: How to make the wind open the door?
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
(This post was last modified: 01-28-2013, 05:46 AM by taylor23.)
|
|
01-23-2013, 08:14 AM |
|
|