TheDavenia
Member
Posts: 223
Threads: 38
Joined: Jun 2011
Reputation:
0
|
RE: sigh... a fatal error.. again!
(07-18-2011, 03:49 PM)Ouroboros Wrote: It would be more complicated for me to add it for you since I can't see and move things on your map. All you have to do is move the closet in the direction it opens, and see if the X or Z coordinate increases or decreases. If the X coordinate increases, use
AddBodyForce("metal_cabinet_1_rightDoor", 900, 0, 0, "world");
AddBodyForce("metal_cabinet_1_leftDoor", 900, 0, 0, "world");
And that will push the doors open. If the X coordinate decreases, add - in front of the 900. And if the Z coordinate changes, you do the same but it's in the third number section.
AddBodyForce("metal_cabinet_1_rightDoor", 0, 0, 900, "world");
AddBodyForce("metal_cabinet_1_leftDoor", 0, 0, 900, "world");
And then you just add the SetSwingDoorAutoCloseDisable("name", true);
And SetSwingDoorClosed("name", false, true); before the AddBodyForce code.
How am i supposed to see if it opens in x or z or y
Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
|
|
07-18-2011, 05:16 PM |
|