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
[SOLVED] Making closet doors slam up?
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#5
RE: Making closet doors slam up?

You want to close the door when player enters that area?
    SetSwingDoorLocked("door_name", false, false or true);
    SetSwingDoorClosed("door_name", false, false or true);
    SetSwingDoorDisableAutoClose("door_name", true);
    AddPropImpulse("door_name", 0.0f, 0.0f, 10000.0f, "World" or "Local");

I wrote "or" where it depends on what you want to do.

01-21-2011, 05:01 PM
Website Find


Messages In This Thread
RE: Making closet doors slam up? - by Shev - 01-21-2011, 03:55 PM
RE: Making closet doors slam up? - by Tanshaydar - 01-21-2011, 04:29 PM
RE: Making closet doors slam up? - by Tanshaydar - 01-21-2011, 05:01 PM
RE: Making closet doors slam up? - by Tanshaydar - 01-21-2011, 06:50 PM
RE: Making closet doors slam up? - by Tanshaydar - 01-21-2011, 07:37 PM



Users browsing this thread: 1 Guest(s)