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
AddBodyForce Cabinet Doors Script Problem
Mazl Offline
Junior Member

Posts: 5
Threads: 1
Joined: Jun 2013
Reputation: 0
#6
RE: AddBodyForce Cabinet Doors Script Problem

Quote: Perhaps you're doing it from the wrong direction. Also check if the cabinet is locked.
PHP Code: (Select All)
SetSwingDoorDisableAutoClose("cabinet_nice_2"true);
SetSwingDoorLocked("cabinet_nice_2",false,true); 

I already unlocked it Wink

and:

PHP Code: (Select All)
AddPropForce("cabinet_nice_2_Body_1",0,0,-2000,"world");  AddPropForce("cabinet_nice_2_Body_2",0,0,-2000,"world");  
AddPlayerBodyForce(00, -30000false); 


the AddPlayerBodyForce goes to the right direction, and i think this is the direction, were the cabinetdoors have to go (the player goes backwards)

Quote: The door and the body is actually two different models put together by the Body. You need to direct it to the door, not the body, which is impossible (I think).
the 2 doors are two bodies (Body_1 and Body_2). Because that i think AddBodyForce, and when i take the value to 30000, the doors are bugging around -> something happens, but not that, what i want Big Grin
(This post was last modified: 06-13-2013, 02:29 PM by Mazl.)
06-13-2013, 02:28 PM
Find


Messages In This Thread
RE: AddBodyForce Cabinet Doors Script Problem - by Mazl - 06-13-2013, 02:28 PM



Users browsing this thread: 1 Guest(s)