Frictional Games Forum (read-only)
How to make a gust push a door and a chair? - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: How to make a gust push a door and a chair? (/thread-6881.html)

Pages: 1 2


How to make a gust push a door and a chair? - XxItachi09xX - 03-14-2011

How? I am trying to make it more creepier for my story, how?


RE: How to make a gust push a door and a chair? - Russ Money - 03-14-2011

(03-14-2011, 04:24 AM)XxItachi09xX Wrote: How? I am trying to make it more creepier for my story, how?

Scripting.

Here are the funcs

For the chair
AddPropImpulse("chair", 0, 0, 0, "world");

The three 0's are the cords for the X, Y, Z axis. "chair" is name of the entity and "world" is the CordSystem, you normally want to leave it as "world".

For the door, it's the same
AddPropImpulse("door", 0, 0, 0, "world");

You'll want to add the impulse on which way it opens.
Example: If the door swings open towards the X axis, increasingly, it'll be something like this:

AddPropImpulse("door", 0.8f, 0, 0, "world");


RE: How to make a gust push a door and a chair? - XxItachi09xX - 03-16-2011

(03-14-2011, 05:19 AM)Russ Money Wrote:
(03-14-2011, 04:24 AM)XxItachi09xX Wrote: How? I am trying to make it more creepier for my story, how?

Scripting.

Here are the funcs

For the chair
AddPropImpulse("chair", 0, 0, 0, "world");

The three 0's are the cords for the X, Y, Z axis. "chair" is name of the entity and "world" is the CordSystem, you normally want to leave it as "world".

For the door, it's the same
AddPropImpulse("door", 0, 0, 0, "world");

You'll want to add the impulse on which way it opens.
Example: If the door swings open towards the X axis, increasingly, it'll be something like this:

AddPropImpulse("door", 0.8f, 0, 0, "world");

void OpenDoorScare(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("mansion_1", 0.8f, 0, 0, "world");
AddPropImpulse("chair_wood02_18", 0.8f, 0, 0, "world");
}

No effects. Can you please tell me step by step? I put the .hps like this but it doesn't have a effect when i am testing the mapm


RE: How to make a gust push a door and a chair? - Russ Money - 03-16-2011

Are you wanting the player to interact with something to cause the triggers? Or when they collide with an area script?


RE: How to make a gust push a door and a chair? - XxItachi09xX - 03-16-2011

Collide with an area.


RE: How to make a gust push a door and a chair? - Raymond - 03-16-2011

Can i ask a question? What is X Y Z axis?


RE: How to make a gust push a door and a chair? - Tanshaydar - 03-16-2011

(03-16-2011, 07:35 AM)Raymond Wrote: Can i ask a question? What is X Y Z axis?

http://www.frictionalgames.com/forum/thread-6910.html


RE: How to make a gust push a door and a chair? - Raymond - 03-16-2011

(03-16-2011, 11:06 AM)Tanshaydar Wrote:
(03-16-2011, 07:35 AM)Raymond Wrote: Can i ask a question? What is X Y Z axis?

http://www.frictionalgames.com/forum/thread-6910.html

Ok thank you very much Smile.
Well it moved but didn't open the door.


RE: How to make a gust push a door and a chair? - Tanshaydar - 03-16-2011

You have to put it in the direction of the door that opens. Door might be opening to the X, Y, Z, -X, -Y or even -Z direction.


RE: How to make a gust push a door and a chair? - Raymond - 03-17-2011

I did put to the correct axis. When i trigger it, it just look like someone kicked it (not open)Confused.