Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove a Timer Loop which opens a door using AddPropForce?
Author Message
Akumasama Offline
Member

Posts: 122
Joined: Nov 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)