Frictional Games Forum (read-only)
how do i make a door open? - 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: how do i make a door open? (/thread-9088.html)



how do i make a door open? - Dizturbed - 07-11-2011

could someone please help me make a door open by itself, without me needing to touch it. :L


RE: how do i make a door open? - Khyrpa - 07-11-2011

SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects);
SetSwingDoorDisableAutoClose(string& asName, bool abDisableAutoClose);
AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

you might have to use all 3


RE: how do i make a door open? - Dizturbed - 07-11-2011

i dunno know how to addprofforce tho, could you help me with that?



RE: how do i make a door open? - xtron - 07-12-2011

just make a script like an CollideCallBack and when you enter that script this happens:

Code:
SetSwingDoorClosed("DOOR NAME", false, true);

No need to add an PropForce XD.


RE: how do i make a door open? - jessehmusic - 12-26-2011

I have same problem i want a door to be open without touch but i dont understand that script at all anyone that can help me out with it