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
i need some help/ explaination
Headless Offline
Junior Member

Posts: 20
Threads: 3
Joined: Dec 2014
Reputation: 0
#31
RE: i need some help/ explaination

Still the same Sad
12-27-2014, 01:11 PM
Find Reply
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#32
RE: i need some help/ explaination

If you are using those mansion base doors I remember I had this problem too.
I had to put a timer to push it twice. Cause the first time fails, second time opens.

So, after you unlock the door, you add force then a timer to add force again. Give it like 0,5 seconds of delay.

In your case I would alter the function Slam and add a timer to push the door again.

Original:
PHP Code: (Select All)
void Slam(string &in asTimer)
{
    
SetSwingDoorLocked("Door_B"falsetrue);
    
AddTimer("Ad"0.35f"AddForce");


New:
PHP Code: (Select All)
void Slam(string &in asTimer)
{
    
SetSwingDoorLocked("Door_B"falsetrue);
    
AddTimer("Ad"0.35f"AddForce");
    
AddTimer("Ad"0.35f"AddForce");


If you still have problems, try to add force to the door every time you interact with it and see if it opens at the second try or to what direction you need to add force.
I have this done in my mod, try that first, then I'll take a look at my scripts. I don't have the files here, I would have to download the mod from moddb.

12-27-2014, 04:34 PM
Find Reply




Users browsing this thread: 1 Guest(s)