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
#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


Messages In This Thread
RE: How to make a gust push a door and a chair? - by XxItachi09xX - 03-16-2011, 03:49 AM



Users browsing this thread: 1 Guest(s)