need help with a door - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: need help with a door (/thread-6189.html) |
need help with a door - sassix - 01-13-2011 ye guys , im sry but mb i failed to search. But i need a script or just a know how to make a door open a bit, i dont know how to explain with my tard english ;/. the player should go out and if hes near the door , the door should close fast. RE: need help with a door - Tottel - 01-13-2011 Code: void AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem); You can use this to add a 'push' to your door. In the level editor, you can check what the X/Y/Z co-ordinates are, then just apply it. Also note that 100 might not be enough. Try starting with 1000 or something to first see if it actually worked on the proper axis, then tone it down. RE: need help with a door - sassix - 01-13-2011 (01-13-2011, 10:32 AM)Tottel Wrote: Oh dude your awsome, didnt tryed it yet but im glad ur here in this forum ;D god bless u man ^^ ---------------- Edit: Well, i tryed everything but looks like it wont work or i did something wrong Quote:void OnStart() i tryed on every axes the number between 1000.0f and -1000.0f. btw i missed the say i need to open it on the same way on start so the player shouldnt see how the door opens automatic, or is there a way to place the door in the editor with working closing function ? i tryed to turn it around a bit, but the position how its placed is the end position too. Hope u understand :/ im now trying something complicated may it works but i dont think so ---- God im with stupid -.- i had to watch the entity tab first on the door "openamount" ftw but thx for your help lol now i just need the Quote:SetSwingDoorClosed("ausgang", true, true);and its done |