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
Making a door open slowly [SOLVED]
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#4
RE: Making a door open slowly

Okay, I fixed the errors, but the door won't push itself open.
The script now looks like:
void DoorOpenTimer(string &in asTimer)
{
    if (GetLocalVarInt("TickX") == 40){
        return;
    }
    else
        AddPropImpulse("cellar_wood01_1", 0.0f, 0.0f, 0.04f, "");
        // 0.04f (around this force makes it open slowly regarding the timer)
        SetSwingDoorDisableAutoClose("cellar_wood01_1", false);
        AddTimer("PushDoor", 0.1f, "DoorOpenTimer");
        AddLocalVarInt("TickX", 1);
}

but it doesn't work. The door remains closed.

Creator of The Dark Treasure.
(This post was last modified: 02-18-2011, 08:35 AM by Linus Ågren.)
02-18-2011, 07:32 AM
Website Find


Messages In This Thread
RE: Making a door open slowly - by Vradcly - 02-18-2011, 12:40 AM
RE: Making a door open slowly - by Acies - 02-18-2011, 03:31 AM
RE: Making a door open slowly - by Linus Ågren - 02-18-2011, 07:32 AM
RE: Making a door open slowly - by jens - 02-18-2011, 07:35 AM
RE: Making a door open slowly - by Linus Ågren - 02-18-2011, 07:55 AM



Users browsing this thread: 2 Guest(s)