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
Script Help Any way to control where the shelf goes once you activate it?
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#4
RE: Any way to control where the shelf goes once you activate it?

Just for you to know. If you were trying to make a shelf being pushed away, all you need to do is to use the function AddPropImpulse. You have to make sure that you send it in the direction you want. For that there are 3 coordinates, X, Y, Z in the Cartesian system. Y is for up(in the game), so increasing this value will apply a force vector in the center of the shelf giving it an impulse to up/down(depending if the number is <0 or >0). X and Y you can already understand.

If that's what you meant, I hope I helped.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
10-22-2011, 10:04 AM
Find


Messages In This Thread
RE: Any way to control where the shelf goes once you activate it? - by nemesis567 - 10-22-2011, 10:04 AM



Users browsing this thread: 1 Guest(s)