Frictional Games Forum (read-only)
[SCRIPT] Any way to control where the shelf goes once you activate it? - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Any way to control where the shelf goes once you activate it? (/thread-10900.html)



Any way to control where the shelf goes once you activate it? - flamez3 - 10-21-2011

It keeps going through the wall and even when i change the rotatearea it still goes in the exact same place Sad Any help?




RE: Any way to control where the shelf goes once you activate it? - nemesis567 - 10-21-2011

Could you be more specific and give out more information. What shelf are you talking about? What exactly are you talking about?



RE: Any way to control where the shelf goes once you activate it? - flamez3 - 10-22-2011

Never mind i just used a door that explodes instead :/


RE: Any way to control where the shelf goes once you activate it? - nemesis567 - 10-22-2011

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.