(07-05-2014, 12:53 PM)Harry Potter Wrote: (07-05-2014, 10:25 AM)MsHannerBananer Wrote: AddBodyForce("cabinet1_rightDoor", 0, 0, -900, "world");
AddBodyForce("cabinet1_leftDoor", 0, 0, -900, "world");
So, if you had a cabinet named "cabinet1" you add "_rightdoor" or "_leftdoor". Use both to open both doors, or just one.
That wouldn't work. If you open the model in the ModelEditor, you'll see that the main body and doors are seperate and you only specify the body of the doors, not the names of the doors.
So unless the Body your Right door is named rightDoor and Body of the Left door named leftDoor, your method won't work.
AddBodyForce("cabinet1_Body_1", 0, 0, -900, "world");
AddBodyForce("cabinet1_Body_2", 0, 0, -900, "world");
That would work.
If you had read my post correctly, you would have noticed I was talking about the METAL cabinet. You know, cabinet_metal.ent? LOL
The metal cabinet has two bodies for the doors, labelled, as afore mentioned, "rightDoor" and "leftDoor". The use of "_left/rightDoor" attached to the name of your cabinet in your script, directly references the bodies on the cabinet, therefore giving you creative power to blow them open as you see fit.
So for the metal cabinet, yes, this method does work.