Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sigh... a fatal error.. again!
Author Message
Ouroboros Offline
Junior Member

Posts: 20
Joined: Jul 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: sigh... a fatal error.. again! - Kyle - 07-18-2011, 02:12 PM
RE: sigh... a fatal error.. again! - Ouroboros - 07-18-2011 03:49 PM



User(s) browsing this thread: 1 Guest(s)