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
sigh... a fatal error.. again!
Ouroboros Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jul 2011
Reputation: 0
#11
RE: sigh... a fatal error.. again!

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.
07-18-2011, 03:49 PM
Find


Messages In This Thread
sigh... a fatal error.. again! - by TheDavenia - 07-18-2011, 02:07 PM
RE: sigh... a fatal error.. again! - by Kyle - 07-18-2011, 02:12 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 02:23 PM
RE: sigh... a fatal error.. again! - by Roenlond - 07-18-2011, 02:40 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 02:41 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 03:35 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 03:49 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 07:49 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-19-2011, 04:24 AM



Users browsing this thread: 1 Guest(s)