Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove a Timer Loop which opens a door using AddPropForce?
Akumasama Offline
Member

Posts: 122
Threads: 2
Joined: Nov 2010
Reputation: 0
#4
RE: How to remove a Timer Loop which opens a door using AddPropForce?

void lanterndoorclose(string &in asParent, string &in asChild, int alState)
{
     AddPropImpulse("lanterndoortrapdoor", 0, 150, 0, "world");
     AddTimer("lanterndoortrapdoortimer", 0.3f, "lanterndoortrapdoorlock");
}
void lanterndoortrapdoorlock(string &in asTimer)
{
    SetSwingDoorLocked("lanterndoortrapdoor", true, true);
    PlayGuiSound("door_level_wood_locked", 1);
}

Well, that's what I use.
But in my case, it closes, not opens...
12-11-2010, 07:13 PM
Find


Messages In This Thread
RE: How to remove a Timer Loop which opens a door using AddPropForce? - by Akumasama - 12-11-2010, 07:13 PM



Users browsing this thread: 1 Guest(s)