(07-18-2011 09:44 PM)TheDavenia Wrote:
(07-18-2011 07:49 PM)Ouroboros Wrote: A cabinet will open in the direction the doors face. So, in the level editor select the cabinet you want to open and move the camera so that the side with the doors faces you. Then, move it toward you slightly and watch it's coordinates to see which one increases/decreases.
Afterward you just move it back or use Ctrl + Z.
I tried it but it doesn't work?
When i unlock it it doesn't fly open?
When I was trying to figure out how to do it, I found a post by someone and they said to make a box and play with it, push it around and such. So, I suggest making a small box and playing with AddPropForce and try to learn how to move it the way you want, then play around more with the cabinet doors. If you can get the box to move where you want it too, AddBodyForce works the same way and you'd just need to add the body name (for metal cabinets add _leftDoor or _rightDoor at the end of the entity name in the code).