Frictional Games Forum (read-only)

Full Version: i need some help/ explaination
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Still the same Sad
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:
void Slam(string &in asTimer)
{
    
SetSwingDoorLocked("Door_B"falsetrue);
    
AddTimer("Ad"0.35f"AddForce");


New:
PHP Code:
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.
Pages: 1 2 3 4