Frictional Games Forum (read-only)
[SCRIPT] Opening doors with wind - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Opening doors with wind (/thread-18532.html)

Pages: 1 2


RE: Opening doors with wind - FlawlessHappiness - 09-28-2012

Is it having problems with the floor, or the door frame? Should it be lifted a bit?


RE: Opening doors with wind - The chaser - 09-30-2012

The door 1 opens correctly, the castle_2 doesn't. Nevermind, castle_2 isn't really necessary. I think it won't have wind.


RE: Opening doors with wind - Wapez - 10-02-2012

This looks really cool too:


void TimerSwingDoor(string &in asTimer)
{
if(GetLocalVarInt("SwingDoor") == 10){
SetLocalVarInt("SwingDoor", 0);
return;
}

if(asTimer == "Door_1") AddPropForce(asTimer, 160.0f, 0, 0, "World");
else AddPropForce(asTimer, -60.0f, 0, 0, "World");

AddLocalVarInt("SwingDoor", 1);

AddTimer(asTimer, 0.03f, "TimerSwingDoor");

}