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
need help with a door
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#2
RE: need help with a door

void  AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

Filled in example:

AddPropForce("MyDoor", 100.0f, 0.0f, 0.0f, "World");


You can use this to add a 'push' to your door. In the level editor, you can check what the X/Y/Z co-ordinates are, then just apply it.

Also note that 100 might not be enough. Try starting with 1000 or something to first see if it actually worked on the proper axis, then tone it down.
(This post was last modified: 01-13-2011, 10:33 AM by Tottel.)
01-13-2011, 10:32 AM
Find


Messages In This Thread
need help with a door - by sassix - 01-13-2011, 03:10 AM
RE: need help with a door - by Tottel - 01-13-2011, 10:32 AM
RE: need help with a door - by sassix - 01-13-2011, 04:47 PM



Users browsing this thread: 1 Guest(s)