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
Open a door with script
Andross Offline
Junior Member

Posts: 38
Threads: 1
Joined: Oct 2010
Reputation: 0
#10
RE: Open a door with script

AddPropForce("MyDoor", 100.0f, 0.0f, 0.0f, "World");
That's how I implemented it successfully at various locations (as well as the developers Smile).
The example assumes that your door swings open towards the x-axis. If I remember it correctly, 100.0 is not enough to open the door completely, so you might have to either call this multiple times by means of a timer or adjust the force value.
01-09-2011, 03:36 PM
Find


Messages In This Thread
Open a door with script - by pawsUp1703 - 01-09-2011, 02:53 PM
RE: Open a door with script - by Tottel - 01-09-2011, 02:57 PM
RE: Open a door with script - by pawsUp1703 - 01-09-2011, 02:59 PM
RE: Open a door with script - by Tottel - 01-09-2011, 03:12 PM
RE: Open a door with script - by Frontcannon - 01-09-2011, 03:15 PM
RE: Open a door with script - by pawsUp1703 - 01-09-2011, 03:22 PM
RE: Open a door with script - by Tottel - 01-09-2011, 03:24 PM
RE: Open a door with script - by pawsUp1703 - 01-09-2011, 03:26 PM
RE: Open a door with script - by Tottel - 01-09-2011, 03:31 PM
RE: Open a door with script - by Andross - 01-09-2011, 03:36 PM
RE: Open a door with script - by GraphicsKid - 01-10-2011, 04:29 AM



Users browsing this thread: 1 Guest(s)