Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a gust push a door and a chair?
XxItachi09xX Offline
Junior Member

Posts: 16
Threads: 7
Joined: Feb 2011
Reputation: 0
#1
How to make a gust push a door and a chair?

How? I am trying to make it more creepier for my story, how?
03-14-2011, 04:24 AM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: How to make a gust push a door and a chair?

(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");
03-14-2011, 05:19 AM
Find
XxItachi09xX Offline
Junior Member

Posts: 16
Threads: 7
Joined: Feb 2011
Reputation: 0
#3
RE: How to make a gust push a door and a chair?

(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
03-16-2011, 03:49 AM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#4
RE: How to make a gust push a door and a chair?

Are you wanting the player to interact with something to cause the triggers? Or when they collide with an area script?
03-16-2011, 04:17 AM
Find
XxItachi09xX Offline
Junior Member

Posts: 16
Threads: 7
Joined: Feb 2011
Reputation: 0
#5
RE: How to make a gust push a door and a chair?

Collide with an area.
03-16-2011, 04:26 AM
Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#6
RE: How to make a gust push a door and a chair?

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

One World To Another [DEMO] coming soon.
03-16-2011, 07:35 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#7
RE: How to make a gust push a door and a chair?

(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

03-16-2011, 11:06 AM
Website Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#8
RE: How to make a gust push a door and a chair?

(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.

One World To Another [DEMO] coming soon.
(This post was last modified: 03-16-2011, 11:26 AM by Raymond.)
03-16-2011, 11:18 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#9
RE: How to make a gust push a door and a chair?

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.

03-16-2011, 12:02 PM
Website Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#10
RE: How to make a gust push a door and a chair?

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

One World To Another [DEMO] coming soon.
03-17-2011, 03:59 AM
Find




Users browsing this thread: 2 Guest(s)