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
Door Open/Close Depending on Situation
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#9
RE: Door Open/Close Depending on Situation

You have to experiment a bit with the values here.

void TimerCreakDoor(string &in asTimer)
{
AddPropForce("castle_1", 1, 0, 0, "World");
}

You might have to use -1, -2 or 2, just try it out.

[edit]
You also got a mistake in the code.

else
        StartPlayerLookAt("castle_1", 3, 4, "");
        AddTimer("", 0.5f, "TimerSlamDoor");

Use:

else {
        StartPlayerLookAt("castle_1", 3, 4, "");
        AddTimer("", 0.5f, "TimerSlamDoor");
}

You have to use { } when you use more than 1 line in if-, else-, for-clauses and so on.

09-18-2010, 10:52 PM
Find


Messages In This Thread
RE: Door Open/Close Depending on Situation - by Pandemoneus - 09-18-2010, 10:52 PM



Users browsing this thread: 2 Guest(s)